Main Content

addView

Add views to view set

Description

example

vSet= addView(vSet,viewId)增加了the view specified byviewIdto the view set,vSet.

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

vSet= addView(___,'PointCloud',ptCloud)specifies the point cloud associated with the view 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

Create an empty point cloud view set.

vSet = pcviewset;

Add a view to the point cloud view set.

viewId = 1; ptCloud = pcread('teapot.ply'); vSet = addView(vSet,viewId,'PointCloud',ptCloud);

Update the absolute pose of the view.

absPose = rigid3d(eye(3),[2 0 0]); vSet = updateView(vSet,viewId,absPose);

Input Arguments

collapse all

Point cloud view set, specified as apcviewsetobject.

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

Absolute pose of the view, specified as arigid3dobject.

Point cloud, specified as apointCloudobject.

One or more views, specified as a two-column or three-column table. The table must contain the columnsViewIdandAbsolutePose.Pointscolumn is optional.

Column Description
ViewID

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

AbsolutePose Absolute pose of the view, specified as arigid3dobject.
Points Point cloud for the view, specified as apointCloudobject.

Output Arguments

collapse all

View set with added views, returned as apcviewsetobject.

Extended Capabilities

Version History

Introduced in R2020a

See Also

Objects