Main Content

deleteConnection

(To be removed) Delete connection between two views from view set object

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

Description

example

vSet = deleteConnection(vSet,viewId1,viewId2) deletes a connection between two views in the specified viewSet object, vSet.

Examples

collapse all

Create an empty viewSet object.

vSet = viewSet;

Read a pair of images.

imageDir = fullfile(toolboxdir('vision'),'visiondata','structureFromMotion');
I1 = im2gray(imread(fullfile(imageDir,'image1.jpg')));
I2 = im2gray(imread(fullfile(imageDir,'image2.jpg')));

Detect interest points in the two images.

points1 = detectSURFFeatures(I1);
points2 = detectSURFFeatures(I2);

Add the points to the viewSet object.

vSet = addView(vSet,1,'Points',points1);
vSet = addView(vSet,2,'Points',points2);

Extract feature descriptors.

features1 = extractFeatures(I1,points1);
features2 = extractFeatures(I2,points2);

Match features and store the matches.

indexPairs = matchFeatures(features1, features2);
vSet = addConnection(vSet,1,2,'Matches',indexPairs);

Delete the connection between the views.

vSet = deleteConnection(vSet,1,2);

Input Arguments

collapse all

viewSet object.

View ID 1 in the viewSet object, specified as an integer.

View ID 2 in the viewSet object, specified as an integer.

Output Arguments

collapse all

viewSet object.

Version History

Introduced in R2016a

collapse all

R2020a: deleteConnection function of viewSet object will be removed

The viewSet object and its deleteConnection function will be removed in a future release. Instead, manage views and pairwise connections between views of data using use the imageviewset object. Delete connections from the imageviewset object using its deleteConnection function.