Main Content

removeWorldPoints

Remove world points from world point set

Description

example

wpSet = removeWorldPoints(wpSet,pointIndices) removes the world points at the specified indices pointIndices from the world point set wpSet

Examples

collapse all

Generate 3-D world points.

worldPoints = rand(100,3);

Create a worldpointset object.

wpSet = worldpointset;

Add the world points to the world point set. Display the world point set.

[wpSet,newPointIndices] = addWorldPoints(wpSet,worldPoints);
wpSet
wpSet = 
  worldpointset with properties:

                   WorldPoints: [100x3 single]
                       ViewIds: [1x0 uint32]
              ViewingDirection: [0x3 single]
                DistanceLimits: [0x2 single]
          RepresentativeViewId: [0x1 double]
    RepresentativeFeatureIndex: [0x1 double]
                         Count: 100
               Correspondences: [100x3 table]

Remove the first 50 world points from the world point set.

wpSet = removeWorldPoints(wpSet,newPointIndices(1:50))
wpSet = 
  worldpointset with properties:

                   WorldPoints: [50x3 single]
                       ViewIds: [1x0 uint32]
              ViewingDirection: [0x3 single]
                DistanceLimits: [0x2 single]
          RepresentativeViewId: [0x1 double]
    RepresentativeFeatureIndex: [0x1 double]
                         Count: 50
               Correspondences: [50x3 table]

Input Arguments

collapse all

World point set, specified as a worldpointset object.

World point indices, specified as an M-element vector of integers. M is the number of world points to remove from the worldpointset object.

Output Arguments

collapse all

World point set, returned as a worldpointset object.

Extended Capabilities

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

Version History

Introduced in R2020b