removeWorldPoints
Description
removes the world points at the specified indices wpSet
= removeWorldPoints(wpSet
,pointIndices
)pointIndices
from
the world point set wpSet
Examples
Remove Points from World Point Set
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
wpSet
— World point set
worldpointset
object
World point set, specified as a worldpointset
object.
pointIndices
— World point indices
M-element array vector of integers
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
wpSet
— World point set
worldpointset
object
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
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)