Class: viewSet
Check if view exists
tf = hasView(vSet,viewId)
tf = hasView(vSet,viewId) returns 1 if the view specified by viewID exists and 0 if it does not exist.
tf
vSet
viewId
1
viewID
0
expand all
viewSet
viewSet object.
viewId1
View ID in the viewSet object, specified as an integer.
Validity of view connection, returned as a logical 1 or 0.
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 a new view.
vSet = addView(vSet, 1,'Points',points);
Confirm that the view with ID 1 exists.
tf = hasView(vSet,1);
You have a modified version of this example. Do you want to open this example with your edits?