updateCorrespondences
Syntax
Description
updates the correspondences between the 3-D world points specified by
wpSet
= updateCorrespondences(wpSet
,viewId
,pointIndices
,featureIndices
)pointIndices
and 2-D feature points
featureIndices
for the specified view viewId
in a world point set wpSet
. Use this syntax if you added points using
the addWorldPoints
function without specifying unique point identifiers
pointIds
.
updates the correspondences between the 3-D world points specified by the point
identifiers wpSet
= updateCorrespondences(wpSet
,viewId
,pointIds
,featureIndices
)pointIds
and 2-D feature points
featureIndices
for the specified view viewId
in a world point set wpSet
. Use this syntax if you added points using
the addWorldPoints
function by specifying unique point identifiers
pointIds
.
Examples
Update Correspondences in World Point Set
Generate 3-D world points.
worldPoints = rand(100,3);
Create a worldpointset
object.
wpSet = worldpointset;
Add world points.
wpSet = addWorldPoints(wpSet,worldPoints);
Add correspondences for a view.
viewId = 1; pointIndices = 1:10; featureIndices = 1:10; wpSet = addCorrespondences(wpSet,viewId,pointIndices,featureIndices);
Update the feature indices.
newFeatureIndices = 11:20; wpSet = updateCorrespondences(wpSet,viewId,pointIndices,newFeatureIndices);
Update Correspondences in World Point Set
Generate 3-D world points.
worldPoints = rand(100,3);
Generate pointIds.
pointIds = randperm(100);
Create a worldpointset
object.
wpSet = worldpointset;
Add world points.
wpSet = addWorldPoints(wpSet,worldPoints,pointIds);
Add correspondences for a view.
viewId = 1; featureIndices = 1:10; wpSet = addCorrespondences(wpSet,viewId,pointIds(1:10),featureIndices);
Update the feature indices.
newFeatureIndices = 11:20; wpSet = updateCorrespondences(wpSet,viewId,pointIds(1:10),newFeatureIndices);
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2020b