Main Content

deleteView

Delete view from view set

Since R2020a

Description

example

vSet = deleteView(vSet,viewId) deletes the view specified by viewId from the view set, vSet.

Examples

collapse all

Create an empty point cloud view set.

vSet = pcviewset;

Add two views to the point cloud view set.

viewId1 = 1;
viewId2 = 2;
ptCloud1 = pcread('teapot.ply');
ptCloud2 = pctransform(ptCloud1,rigidtform3d([0 0 0],[2 0 0]));

vSet = addView(vSet,viewId1,'PointCloud',ptCloud1);
vSet = addView(vSet,viewId2,'PointCloud',ptCloud2);

Delete the first view.

vSet = deleteView(vSet,viewId1);

Input Arguments

collapse all

Point cloud view set, specified as a pcviewset object.

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

Output Arguments

collapse all

View set with deleted views, returned as a pcviewset object.

Extended Capabilities

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

Version History

Introduced in R2020a

See Also

Objects