Main Content

Load Images, Spatial Referencing Information, and Initial Transformation

You can load images into Registration Estimator from file or from the workspace. You can also provide optional spatial referencing information and an optional initial geometric transformation.

Load Images from File or Workspace

You can load images into Registration Estimator from file or from the workspace. Although you can load grayscale or color images, the app converts all RGB images to grayscale by using the rgb2gray function. Registration Estimator supports only 2-D images.

Loading images from file supports only BMP, JPG, JPEG, TIF, TIFF, PNG, and DCM file types. To work with a wider range of file formats, load images from the workspace. Registration Estimator supports any image read into the workspace by the imread function and DICOM image read into the workspace using the dicomread function.

Load images into the app by clicking the Load Images icon.

  • To load images from a file, select the Load from file option. In the dialog box, select the file path of the moving and fixed images.

  • To load variable from the workspace, select the Load from workspace option. In the dialog box, select two images from your workspace.

Provide Spatial Referencing Information

If you have 2-D spatial referencing objects in your workspace, or if you load DICOM images from a file, then you can provide optional spatial referencing information. Spatial referencing information is useful if you want to orient the images to a world coordinate system. For more information about spatial referencing objects, see imref2d.

Note

If you load DICOM images into the workspace using dicomread, spatial referencing information in the metadata is no longer associated with the image data. To preserve spatial referencing information with DICOM images, either load the images from file or create an imref2d object from the image metadata. For more information about DICOM metadata, see Read Metadata from DICOM Files.

If you do not have spatial referencing information, then the Spatial Referencing Object and DICOM Metadata radio buttons are inactive.

Provide an Initial Geometric Transformation

You can provide an optional initial geometric transformation using affine2d and projective2d geometric transformation objects in your workspace. An initial geometric transformation is useful if you are processing a batch of images with similar initial misalignment. Once the first moving image has been registered, you can export the geometric transformation to the workspace and apply the transformation to other images in the series. See Export Results from Registration Estimator App.

If you do not have a geometric transformation object in your workspace, the Initial Transformation Object selection box is inactive.

See Also

Functions

Classes

Related Topics