主要内容

removeWorldPoints

从世界点集中移除世界点

描述

例子

wpSet= removeWorldPoints (wpSetpointIndices删除指定索引处的世界点pointIndices从世界点集开始wpSet

例子

全部折叠

生成3-D世界点。

worldPoints = rand(100,3);

创建一个worldpointset对象。

wpSet = worldpointset;

将世界点添加到世界点集。显示世界点集。

[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 corresponences: [100x3 table]

从世界点集中移除前50个世界点。

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 corresponences: [50x3 table]

输入参数

全部折叠

世界点集,指定为worldpointset对象。

世界点指数,指定为an-element整数向量。是多少世界点要从worldpointset对象。

输出参数

全部折叠

World point set,返回为aworldpointset对象。

扩展功能

C/ c++代码生成
使用MATLAB®Coder™生成C和c++代码。

版本历史

R2020b中介绍