Main Content

addView

Add views to view set

Description

example

vSet= addView(vSet,viewid.)添加指定的视图viewid.to the view set,vSet.

vSet= addView(vSet,viewid.,absPose)指定视图的绝对姿势。

vSet= addView(___,Name,Value)specifies options using one or more name-value pair 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 byviewTable.

Examples

collapse all

创建一个空的图像视图集。

vSet = imageviewset;

检测图像中的兴趣点。

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);

Input Arguments

collapse all

图像视图集,指定为一个imageviewset目的。

查看标识符, specified as an integer. View identifiers are unique to a specific view.

Absolute pose of the view, specified as arigid3d目的。

一个或多个观点, specified as a two-column or three-column table. The table must contain the columnsViewIdAbsolutePose.column is optional.

柱子 Description
ViewID

查看标识符, specified as an integer. View identifiers are unique to a specific view.

AbsolutePose Absolute pose of the view, specified as arigid3d目的。
Point cloud for the view, specified as apointCloud目的。

Name-Value Arguments

Specify optional pairs of arguments asName1=Value1,...,NameN=ValueN, whereNameis the argument name andValueis 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 encloseNamein quotes.

Example:“点”,detectSURFFeatures(rgb2gray(i))

Feature vectors, specified as the comma-separated pair consisting of'Features'和anM-by-Nmatrix ofMfeature vectors or as abinaryFeatures目的。

Image points, specified as the comma-separated pair consisting of '' and anM-by-2 matrix of coordinates in the format [x,y] or anM-element feature point array. For more details, seePoint Feature Types.

Output Arguments

collapse all

View set with added views, returned as animageviewset目的。

Extended Capabilities

Version History

Introduced in R2020a