www.gusucode.com > vision 源码程序 matlab案例代码 > vision/UpdateAnExistingViewInAViewSetObjectExample.m
%% Update View in View Set Object % %% % Create an empty |viewSet| object. vSet = viewSet; %% % Detect interest points in the image. imageDir = fullfile(toolboxdir('vision'),'visiondata','structureFromMotion'); I = imread(fullfile(imageDir,'image1.jpg')); points = detectSURFFeatures(rgb2gray(I)); %% % Add the points to the object. vSet = addView(vSet,1,'Points',points); %% % Update the view to specify the camera pose. vSet = updateView(vSet, 1,'Orientation',eye(3),'Location',[0,0,0]);