主要内容

updateCorrespondences

更新世界点集的三维到二维对应关系

描述

例子

wpSet= updateCorrespondences (wpSetviewIdpointIndicesfeatureIndices更新指定的三维世界点之间的对应关系pointIndices和二维特征点featureIndices对于指定的视图viewId在一个世界点集中wpSet

例子

全部折叠

生成3-D世界点。

worldPoints = rand(100,3);

创建一个worldpointset对象。

wpSet = worldpointset;

添加世界点数。

wpSet = addWorldPoints(wpSet,worldPoints);

为视图添加通信。

viewId = 1;pointIndices = 1:10;featureIndices = 1:10;wpSet = addcorrespondence (wpSet,viewId,pointIndices,featureIndices);

更新特征索引。

newFeatureIndices = 11:20;wpSet = updatecorresponences (wpSet,viewId,pointIndices,newFeatureIndices);

输入参数

全部折叠

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

视图标识符,指定为标量。

世界点指数,指定为an-element整数列向量。是世界点集中要更新其对应关系的世界点的数目。

特征点索引,指定为-element整数列向量。是世界点集中要更新其对应关系的世界点的数目。

输出参数

全部折叠

World point set,返回为aworldpointset对象。

扩展功能

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

版本历史

R2020b中介绍