Main Content

findConnection

Find connections associated with view identifiers

Description

example

conn= findConnection(vSet,viewIds1,viewIds2)returns a table containing connection attributes for connections betweenviewIds1andviewIds2.viewIds1andviewIds2areM-element vectors of view identifiers.

Examples

collapse all

Create an empty point cloud view set.

vSet = pcviewset;

Add two views to the view set.

viewId1 = 10; viewId2 = 5; vSet = addView(vSet,viewId1); vSet = addView(vSet,viewId2);

Add a connection betweenviewId1andviewId2.

vSet = addConnection(vSet,viewId1,viewId2);

Find and display the connection betweenviewId1andviewId2.

conn = findConnection(vSet,viewId1,viewId2); disp(conn)
ViewId1 ViewId2 RelativePose InformationMatrix _______ _______ ____________ _________________ 10 5 1x1 rigid3d {6x6 double}

Get the relative pose betweenviewId1andviewId2.

relPose = conn.RelativePose;

Input Arguments

collapse all

Point cloud view set, specified as apcviewsetobject.

View identifiers, specified as anM-element vector of integers. View identifiers are unique to a specific view.

View identifiers, specified as anM-element vector of integers. View identifiers are unique to a specific view.

Output Arguments

collapse all

Table containing view attributes, specified as a four-column table. The table contains the columnsViewId1,ViewId2,RelativePose, andInformationMatrixattribute descriptions.

Extended Capabilities

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

Version History

Introduced in R2021b

See Also

Objects