EGH315 Lab Week 5
EGH315 Lab Week 5
EGH315 Lab Week 5
Sets gca (axis) properties to Repeat the codes by changing the [Ty, Tx] &
visible
observe what happens.
Repeat the codes, changing the FillValues to
another pixel value and observe the output
image.
B. Image Registration:
Image registration is a preliminary but crucial step in image processing
applications in medical field. It is used to align multiple scenes into a single
integrated image.
It helps overcome issues such as image rotation, scale, and skew that are common
when overlaying images taken from different modalities or scan dates. Image
registration enables you to compare common features eg, a tumor is visible in an
MRI or PET, not seen in X-ray images.
Involves designating one image as the reference image, also called the fixed
image, and applying geometric transformations or local displacements to the other
image(moving) so that they align with the reference. Images can be misaligned for
a variety of reasons.
Draft
Registration list:
creates 3 registration
trials:
Phase
Correlation, Featur
e: MSER,
and Feature: SURF.
- When you change the setting, the app creates a new trial, numbered 2.1, in the
history list. Note the quality. The higher the quality the better the registration.
- Click Register Images.
What is the quality metric of this registration? Is it better than the previous MSER
trial.
__________________________________________________________________
What is the quality metric of this registration? Is it better than the previous MSER
trial.
_______________________________________________________________
- If you want to see which pixels differ between the default MSER trial and this
trial, change the overlay style to Difference and toggle between the two trials.
Export the registered image and the geometric transformation to the workspace
- Click Export and select Export Images. In the Export to Workspace dialog
box, assign a name to the registration output(eg.Reg1).
- The output is a structure that contains the final registered image and the
geometric transformation.
- Go look at the workspace in MATLAB Online. Click on the Reg1.
Use imregister() to register image. Use imregconfig() to setup a default matrix for
multimodal registration
[optimizer,metric] = imregconfig('multimodal');
movingRegisteredDefault = imregister(moving,fixed,'affine',optimizer,metric);
imshowpair(movingRegisteredDefault,fixed)
title('A: Default Registration')