MATLAB 도움말 센터
Find views associated with view identifiers
Since R2021b
views = findView(vSet,viewIds)
views = findView(vSet,viewIds) finds the views associated with the specified view viewIds and returns the view attributes.
views
vSet
viewIds
example
collapse all
Create an empty image view set.
vSet = imageviewset;
Add two 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);
Extract features descriptors from the detected points.
[features1,validPoints1] = extractFeatures(I1,points1); [features2,validPoints2] = extractFeatures(I2,points2);
Add the points to the imageviewset object.
vSet = addView(vSet,1,Features=features1,Points=validPoints1); vSet = addView(vSet,2,Features=features2,Points=validPoints2);
Find the view that corresponds to viewID equal to 1.
viewID
view = findView(vSet,1)
view=1×4 table ViewId AbsolutePose Features Points ______ ________________ _______________ __________________ 1 1×1 rigidtform3d {574×64 single} {574×1 SURFPoints}
Check the feature points that correspond to viewID equal to 1.
view.Points{:}
ans = 574×1 SURFPoints array with properties: Scale: [574×1 single] SignOfLaplacian: [574×1 int8] Orientation: [574×1 single] Location: [574×2 single] Metric: [574×1 single] Count: 574
imageviewset
Image view set, specified as an imageviewset object.
View identifiers, specified as an M-element vector of integers. Each view identifier is unique to a specific view.
View attributes, returned as a four-column table. The table contains the columns ViewId, AbsolutePose, Features, and Points attribute descriptions.
ViewId
AbsolutePose
Features
Points
expand all
Introduced in R2021b
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 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의