Main Content


(To be removed) Delete existing view from view set object

The viewSet object and its deleteView function will be removed in a future release. Use the imageviewset object and its deleteView function instead. For more information, see Compatibility Considerations.



vSet = deleteView(vSet,viewId) deletes an existing view or a set of views from the specified viewSet object,vSet.


collapse all

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(im2gray(I));

Add a view.

vSet = addView(vSet,1,'Points',points);

Delete the view.

vSet = deleteView(vSet,1);

Input Arguments

collapse all

A viewSet object.

View IDs, specified as an integer scalar for a single view, or as a vector of integers for a set of views.

Output Arguments

collapse all

viewSet object.

Compatibility Considerations

expand all

Not recommended starting in R2020a

Introduced in R2016a