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: [100×3 single]
            ViewIds: [1×0 uint32]
              Count: 100
    Correspondences: [100×3 table]

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

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

        WorldPoints: [50×3 single]
            ViewIds: [1×0 uint32]
              Count: 50
    Correspondences: [50×3 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.

Introduced in R2020b