Image Processing Toolbox User's Guide Previous page   Next Page

Specifying Matching Control Point Pairs

The primary function of the Control Point Selection Tool is to enable you to pick control points in the image to be registered, the input image, and the image to which you are comparing it, the base image. When you start cpselect, the point selection tool is enabled, by default.

You specify control points by pointing and clicking in the input and base images, in either the Detail or the Overview windows. Each point you specify in the input image must have a match in the base image. The following sections describe the ways you can use the Control Point Selection Tool to choose control point pairs:

This section also describes how to move control points after you've created them and how to delete control points.

Picking Control Point Pairs Manually

To specify a pair of control points in your images,

  1. Click the Control Point Selection button. Control point selection mode is active by default.
  2. Position the cursor over a feature you have visually selected in any of the images displayed. The cursor changes to a pointing finger,.
  1. You can pick control points in either of the Detail windows, input or base, or in either of the Overview windows, input or base. You also can work in either direction: input-to-base image, or base-to-input image.

  1. Click the mouse button. cpselect places a control point symbol at the position you specified, in both the Detail window and the Overview window. (The appearance of the control point symbol indicates its current state. Initially, control points are in an active, unmatched state. See Control Point States for more information.

  1. To create the match for this control point, move the cursor into the corresponding Detail or Overview window. For example, if you started in an input window, move the cursor to a base window.
  2. Click the mouse button. cpselect places a control point symbol at the position you specified, in both the Detail and Overview windows. Because this control point completes a pair, the appearance of this symbol indicates an active, matched state. Note that the appearance of the first control point you selected (in step 3) also changes to an active, matched state.

You pick pairs of control points by moving from a view of the input image to a view of the base image, or vice versa. You can pick several control points in one view of the image, and then move to the corresponding window to locate their matches. To match an unmatched control point, select it to make it active, and then pick a point in the corresponding view window. When you select a match for a control point, the symbols for both points change to indicate their matched state. You can move or delete control points after you create them.

The following figure illustrates control points in several states.

Using Control Point Prediction

Instead of picking matching control points by moving the cursor between corresponding Detail or Overview windows, you can let the Control Point Selection Tool estimate the match for the control points you specify, automatically. The Control Point Selection Tool determines the position of the matching control point based on the geometric relationship of the previously selected control points.

To illustrate point prediction, this figure shows four control points selected in the input image, where the points form the four corners of a square. (The control points selections in the figure do not attempt to identify any landmarks in the image.) The figure shows the picking of a fourth point, in the left window, and the corresponding predicted point in the right window. Note how the Control Point Selection Tool places the predicted point at the same location relative to the other control points, forming the bottom right corner of the square.

To use control point prediction,

  1. Click the Control Point Prediction button.
  2. Position the cursor anywhere in any of the images displayed. The cursor changes to a pointing finger, .
  1. You can pick control points in either of the Detail windows, input or base, or in either of the Overview windows, input or base. You also can work in either direction: input-to-base image or base-to-input image.

  1. Click either mouse button. The Control Point Selection Tool places a control point symbol at the position you specified and places another control point symbol for a matching point in all the other windows. The symbol for the predicted point contains the letter "P," indicating that it's a predicted control point.
  1. This figure illustrates predicted points in active unmatched, matched, and predicted states. For a complete description of all point states, see Control Point States.

Control Point States

The appearance of control point symbols indicates their current state. When you first pick a control point, its state is active and unmatched. When you pick the match for a control point, the appearance of both symbols changes to indicate their matched status.

This table lists all the possible control point states with their symbols. cpselect displays this list in a separate window called a Legend. The Legend is visible by default, but you can control its visibility using the Legend option from the View menu.

Control Point States 
Symbol
State
Description

Active unmatched
The point is currently selected but does not have a matching point. This is the initial state of most points.

Active matched
The point is currently selected and has a matching point.

Active predicted
The point is a predicted point. If you move its position, the point changes to active matched state.

Unmatched
The point is not selected and it is unmatched. You must select it before you can create its matching point.

Matched
The point has a matching point.

Predicted
This point was added by cpselect during point prediction.

Moving Control Points

To move a control point,

  1. Click the Control Point Selection button or the Default Cursor button .
  2. Position the cursor over the control point you want to move.
  3. Press and hold the mouse button and drag the control point. The state of the control point changes to active when you move it.

If you move a predicted control point, the state of the control point changes to a regular (nonpredicted) control point.

Deleting Control Points

To delete a control point, and optionally its matching point,

  1. Click the Control Point Selection button or the Default Cursor button .
  2. Click the control point you want to delete. Its state changes to active. If the control point has a match, both points become active.
  3. Delete the point (or points) using one of these methods:

Undoing and Redoing Control Point Selections

You can undo a deletion or series of deletions using the Undo Delete option on the cpselect Edit menu.

After undoing a deletion, you can delete the points again using the Redo option, also on the Edit menu.


Previous page  Viewing the Images Saving Control Points Next page

© 1994-2005 The MathWorks, Inc.