Main Content

updateCorrespondences

Update 3-D to 2-D correspondences in world point set

Since R2020b

Description

example

wpSet = updateCorrespondences(wpSet,viewId,pointIndices,featureIndices) updates the correspondences between the specified 3-D world points pointIndices and 2-D feature points featureIndices for the specified view viewId in a world point set wpSet.

Examples

collapse all

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);

Input Arguments

collapse all

World point set, specified as a worldpointset object.

View identifier, specified as a scalar.

World point indices, specified as an M-element column vector of integers. M is the number of world points for which to update correspondences in the world point set.

Feature point indices, specified as an M-element column vector of integers. M is the number of world points for which to update correspondences in the world point set.

Output Arguments

collapse all

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