[movingPoints,fixedPoints]
= cpstruct2pairs(cpstruct_in) extracts
the valid control point pairs from cpstruct_in,
returning two arrays movingPoints and fixedPoints.
Open the Control Point Selection tool, specifying the
two images along with the predefined control points.
cpselect(aerial,ortho,movingPoints,fixedPoints);
Create the cpstruct structure. Using the Control Point Selection
tool, select Export Points to Workspace from the File menu to save the points to the workspace. On the Export Points to Workspace dialog box, check the Structure with all points check box, and clear Moving points of valid pairs and Fixed
points of valid pairs. Click OK. Close the Control
Point Selection tool.
Use cpstruct2pairs to extract the moving
and fixed points from the cpstruct.
[mPoints,fPoints] = cpstruct2pairs(cpstruct);
Compare the stored set of points with the set of points
you exported.
cpstruct_in — Preselected control points structure
Preselected control points, specified as a structure (cpstruct). cpstruct_in contains
information about the x- and y-coordinates
of all control points in the moving and fixed images, including unpaired
and predicted control points. cpstruct2pairs eliminates
unmatched and predicted control points, and returns the set of valid
control point pairs.
cpstruct_in is a structure produced by
the Control Point Selection tool (cpselect)
when you choose the Export Points to Workspace option.
For more information, see Export Control Points to the Workspace.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.