Main Content


Find world points that correspond to point tracks

Since R2020b



pointIndices = findWorldPointsInTracks(wpSet,tracks) finds the indices of world points pointIndices that correspond to the specified point tracks tracks.


[pointIndices,validIndex] = findWorldPointsInTracks(wpSet,tracks) additionally returns a vector that indicates whether each point track has a corresponding world point.


collapse all

Load precomputed world point set and image view set.

data = load(fullfile(toolboxdir('vision'),'visiondata','worldpointsetAndTracks.mat'));

Find point tracks across views.

tracks = findTracks(data.vSet);

Find 3-D world points corresponding to point tracks.

pointIndices = findWorldPointsInTracks(data.wpSet,tracks);

Input Arguments

collapse all

World point set, specified as a worldpointset object.

Point tracks, specified as an M-element row vector of pointTrack objects.

Output Arguments

collapse all

3-D world point indices, returned as an N-element column vector. N is the number of world points for which the function detects corresponding point tracks.

Logical index of point track correspondences, returned as an M-element logical vector. M is the number of point tracks in the tracks argument. A value of 1 (true) indicates that the associated point track has a corresponding world point, and a value of 0 (false) indicates that it does not.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2020b