deleteConnection
Description
Examples
Delete Connection Between Views in Image View Set
Create an empty image view set.
vSet = imageviewset;
Read two images into the workspace.
imageDir = fullfile(toolboxdir('vision'),'visiondata','structureFromMotion'); I1 = im2gray(imread(fullfile(imageDir,'image1.jpg'))); I2 = im2gray(imread(fullfile(imageDir,'image2.jpg')));
Detect interest points in each image.
points1 = detectSURFFeatures(I1); points2 = detectSURFFeatures(I2);
Extract feature descriptors from the interest points.
[features1,validPoints1] = extractFeatures(I1,points1); [features2,validPoints2] = extractFeatures(I2,points2);
Add the features and points for the two images to the image view set.
vSet = addView(vSet,1,'Features',features1,'Points',validPoints1); vSet = addView(vSet,2,'Features',features2,'Points',validPoints2);
Match the features between the two images. Then, store the matches features as a connection in the image view set.
indexPairs = matchFeatures(features1,features2);
vSet = addConnection(vSet,1,2,'Matches',indexPairs);
Delete the connection between the two views.
vSet = deleteConnection(vSet,1,2);
Input Arguments
vSet
— Image view set
imageviewset
object
Image view set, specified as an imageviewset
object.
viewId1
— View identifier 1
positive integer
View identifier 1, specified as an integer. View identifiers are unique to a specific view.
viewId2
— View identifier 2
positive integer
View identifier 2, specified as an integer. View identifiers are unique to a specific view.
Output Arguments
vSet
— View set with deleted connections
imageviewset
object
View set with deleted connections, returned as an imageviewset
object.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2020a
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)