Main Content

Load Images, Spatial Referencing Information, and Initial Transformation

You can load images intoRegistration Estimatorfrom 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 intoRegistration Estimatorfrom file or from the workspace. Although you can load grayscale or color images, the app converts all RGB images to grayscale by using thergb2grayfunction.Registration Estimatorsupports 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 Estimatorsupports any image read into the workspace by theimreadfunction and DICOM image read into the workspace using thedicomreadfunction.

Load images into the app by clicking theLoad Imagesicon.

  • To load images from a file, select theLoad from fileoption. In the dialog box, specify the file path of the moving and fixed images. UseBrowseto navigate to a folder.

  • To load variables from the workspace, select the从工作区中加载option. In the dialog box, select the name of the variable containing the moving image from theMoving Imagemenu and the variable containing the fixed image from theFixed Imagemenu.

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, seeimref2d.

Note

If you load DICOM images into the workspace usingdicomread, 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 animref2dobject from the image metadata. For more information about DICOM metadata, seeRead 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 usingaffine2dandprojective2dgeometric 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. SeeExport 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