This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

deleteView

Class: viewSet

Delete an existing view from view set object

Syntax

vSet = deleteView(vSet,viewId)

Description

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

Input Arguments

expand 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

expand all

viewSet object.

Examples

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

Add a view.

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

Delete the view.

vSet = deleteView(vSet,1);

Introduced in R2016a