Main Content

connectedViews

Connected views in view set

Description

example

viewTable= connectedViews(vSet,viewId)returns a table of views fromvSetthat are connected to the view specified byviewId.

Examples

collapse all

Create an empty point cloud view set object.

vSet = pcviewset;

Add views to the point cloud view set.

vSet = addView(vSet,1); vSet = addView(vSet,2); vSet = addView(vSet,3); vSet = addView(vSet,4);

Connect views in the point cloud view set.

vSet = addConnection(vSet,1,2); vSet = addConnection(vSet,2,3); vSet = addConnection(vSet,2,4);

Get the connected views for the view with ID 2.

viewTable = connectedViews(vSet,2)
viewTable=3×3 tableViewId AbsolutePose PointCloud ______ ____________ ______________ 1 1x1 rigid3d 1x1 pointCloud 3 1x1 rigid3d 1x1 pointCloud 4 1x1 rigid3d 1x1 pointCloud

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.

Output Arguments

collapse all

One or more views, returned as a three-column table. The table must contain the columns as described in this table.

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.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

介绍了R2020a

See Also

Objects