deleteView

Delete view from view set

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,rigid3d(eye(3),[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.

See Also

Objects

Introduced in R2020a