findView
Description
Examples
Find View Corresponding to View ID
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.
view = findView(vSet,1)
view=1×4 table
ViewId AbsolutePose Features Points
______ ________________ _______________ __________________
1 1x1 rigidtform3d {574x64 single} {574x1 SURFPoints}
Check the feature points that correspond to viewID
equal to 1.
view.Points{:}
ans = 574x1 SURFPoints array with properties: Scale: [574x1 single] SignOfLaplacian: [574x1 int8] Orientation: [574x1 single] Location: [574x2 single] Metric: [574x1 single] Count: 574
Input Arguments
vSet
— Image view set
imageviewset
object
Image view set, specified as an imageviewset
object.
viewIds
— View identifier
M-element vector
View identifiers, specified as an M-element vector of integers. Each view identifier is unique to a specific view.
Output Arguments
views
— View attributes
four-column table
View attributes, returned as a four-column table. The table contains the columns
ViewId
, AbsolutePose
,
Features
, and Points
attribute
descriptions.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2021b
MATLAB Command
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.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)