工具/原料
- MATLAB
- 电脑
方式/步骤
- 1
号令行键入:
load cape
%加载图像。

- 2
号令行键入:
image(X)
%显示图像

- 3
号令行键入:
colormap(map)
%显示彩图。

- 4
号令行键入:
axis image
%规范图形。

- 5
号令行键入:
camva(camva/2.5)
%经由过程设置拍照机视角(利用 camva)进行放大。

- 6
号令行键入:
while 1
[x,y] = ginput(1);
if ~strcmp(get(gcf,'SelectionType'),'normal')
break
end
ct = camtarget;
dx = x - ct(1);
dy = y - ct(2);
camdolly(dx,dy,ct(3),'movetarget','data')
drawnow
end
%利用 ginput 选择拍照机方针和拍照机位置的 x 和 y 坐标。








