Image Processing Toolbox | ![]() ![]() |
Convert CPSTRUCT
to valid pairs of control points
Syntax
Description
[
input_points,
base_points] = cpstruct2pairs(CPSTRUCT)
takes a CPSTRUCT
(produced by cpselect
) and returns the arrays of coordinates of valid control point pairs in input_points and base_points. cpstruct2pairs
eliminates unmatched points and predicted points.
Example
Start the Control Point Selection Tool, cpselect
.
Using cpselect
, pick control points in the images. Select Save To Workspace from the File menu to save the points to the workspace. On the Save dialog box, check the Structure with all points checkbox and uncheck Input points and Base points. Click OK. Use cpstruct2pairs
to extract the input and base points from the CPSTRUCT
.
See Also
cp2tform
, cpselect
, imtransform
![]() | cpselect | dct2 | ![]() |