Main Content

updateView

Update view in view set

Since R2020a

Description

example

vSet = updateView(vSet,viewId,absPose) updates the view specified by viewId with the absolute pose absPose.

vSet = updateView(___,"PointCloud",ptCloud) specifies the point cloud associated with the view.

vSet = updateView(vSet,viewTable) updates the views specified in the table viewTable.

Examples

collapse all

Create an empty image view set.

vSet = imageviewset;

Detect interest points in an image.

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

Add a view to the image view set.

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

Update the absolute pose of the view.

absPose = rigidtform3d(eye(3),[0 0 1]);
vSet = updateView(vSet,1,absPose);

Input Arguments

collapse all

Image view set, specified as an imageviewset object.

Point cloud view identifier, specified as a unique integer.

Absolute pose, specified as a rigidtform3d object.

Point cloud, specified as a pointCloud object.

New view or set of views, specified as a two- or three- column table. The table must contain the columns ViewId and AbsolutePose, and an optional column, Points.

ColumnDescription
ViewIDView identifier for the view, specified as a unique integer
AbsolutePoseAbsolute pose of the view, specified as a rigidtform3d object.
PointsA pointCloud.

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 updated view, returned as an imageviewset object.

Extended Capabilities

Version History

Introduced in R2020a

expand all