MATLAB 帮助中心
Delete a connection between views in view set
vSet = deleteConnection(vSet,viewId1,viewId2)
vSet = deleteConnection(vSet,viewId1,viewId2) deletes the connection between views viewId1 and viewId2 in the view set, vSet.
vSet
viewId1
viewId2
example
collapse all
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);
imageviewset
Image view set, specified as an imageviewset object.
View identifier 1, specified as an integer. View identifiers are unique to a specific view.
View identifier 2, specified as an integer. View identifiers are unique to a specific view.
View set with deleted connections, returned as an imageviewset object.
expand all
Introduced in R2020a
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处