Main Content

addView

Add views to view set

Since R2020a

Description

example

vSet = addView(vSet,viewId) adds the view specified by viewId to the view set, vSet.

vSet = addView(vSet,viewId,absPose) specifies the absolute pose of the view.

vSet = addView(___,Name,Value) specifies options using one or more name-value arguments in addition to any of the input argument combinations in previous syntaxes.

vSet = addView(vSet,viewTable) adds one or more views in the table specified by viewTable.

Examples

collapse all

Create an empty image view set.

vSet = imageviewset;

Detect interest points in the image.

imageDir = fullfile(toolboxdir('vision'),'visiondata','structureFromMotion');
I = imread(fullfile(imageDir,'image1.jpg'));
points = detectSURFFeatures(im2gray(I));

Add the interest points as a view to the image view set.

vSet = addView(vSet,1,'Points',points);

Input Arguments

collapse all

Image view set, specified as an imageviewset object.

View identifier, specified as an integer. View identifiers are unique to a specific view.

Absolute pose of the view, specified as a rigidtform3d object.

One or more views, specified as a two-column or three-column table. The table must contain the columns ViewId and AbsolutePose. The Points column is optional.

ColumnDescription
ViewID

View identifier, specified as an integer. View identifiers are unique to a specific view.

AbsolutePoseAbsolute pose of the view, specified as a rigidtform3d object.
PointsPoint cloud for the view, specified as a pointCloud object.

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: "Points",detectSURFFeatures(im2gray(I))

Feature vectors, specified as an M-by-N matrix of M feature vectors or as a binaryFeatures object.

Image points, specified as an M-by-2 matrix of coordinates in the format [x,y] or an M-element feature point array. For more details, see Point Feature Types.

Output Arguments

collapse all

View set with added views, returned as an imageviewset object.

Extended Capabilities

Version History

Introduced in R2020a

expand all