Read an aerial photograph and an orthoregistered image
into the workspace.
Load some preselected control points for these images.
Name Size Bytes Class Attributes
aerial 394x369x3 436158 uint8
fixedPoints 4x2 64 double
movingPoints 4x2 64 double
ortho 366x364 133224 uint8
Open the Control Point Selection tool, specifying the
two images along with the predefined control points.
Create the cpstruct
structure. Using the Control Point Selection
tool, select 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
.
Compare the stored set of points with the set of points
you exported.
fixedPoints =
164.5639 113.2890
353.5325 130.0798
143.4046 284.8935
353.5325 311.9810
fpoints =
164.5639 113.2890
353.5325 130.0798
143.4046 284.8935
353.5325 311.9810
The two sets of points are identical, which indicates that all points in the stored
set of points belong to valid control point pairs.