cpselect() - Image Processing
cpselect(moving,fixed) starts
the Control Point Selection Tool, a graphical user interface that
enables you to select control points in two related images. moving is
the image that needs to be warped to bring it into the coordinate
system of the fixed image. moving and fixed can
be either variables that contain grayscale, truecolor, or binary images,
or strings that identify files containing these images. The Control
Point Selection Tool returns the control points in a CPSTRUCT structure.
(For more information, see Control Point Selection Procedure.)cpselect(moving,fixed,CPSTRUCT_IN) starts cpselect with
an initial set of control points that are stored in CPSTRUCT_IN.
This syntax allows you to restart cpselect with
the state of control points previously saved in CPSTRUCT_IN.cpselect(moving,fixed,movingPoints,fixedPoints) starts cpselect with
a set of initial pairs of control points. movingPoints and fixedPoints are m-by-2
matrices that store the moving and fixed coordinates,
respectively.h = cpselect(moving,fixed,___) returns
a handle h to the tool. You can use the close(h) syntax
to close the tool from the command line.cpselect(___,param1, val1,___) starts cpselect,
specifying parameters and corresponding values that control various
aspects of the tool. Parameter names can be abbreviated, and case
does not matter. Parameters include:Parameter Description
'Wait'Logical scalar that controls whether cpselect waits
for the user to finish the task of selecting points. If set to false (the
default), you can run cpselect at the same time
as you run other programs in MATLABĀ®. If set to true,
you must finish the task of selecting points before doing anything
else in MATLAB. The value affects the output arguments:h
= cpselect(...,'Wait',false) returns a handle h to
the tool. close(h) closes the tool. [moving_out,fixed_out]
= cpselect(...,'Wait', true) returns the selected pairs
of points. moving_out and fixed_out are P-by-2
matrices that store the moving and fixed image coordinates, respectively.
Syntax
cpselect(moving,fixed)cpselect(moving,fixed,CPSTRUCT_IN)cpselect(moving,fixed,movingPoints,fixedPoints)h = cpselect(moving,fixed,___)cpselect(___,param1, val1,___)
Example
cpselect('westconcordaerial.png','westconcordorthophoto.png')
Output / Return Value
Limitations
Alternatives / See Also
Reference