I program function to calculate the overlap area between 2 images (which is called fixed and floating) after transformation but it takes much time and it's complex for me to combine more than one transformation parameter together.
In Matlab, the built in functions
affine2d can make affine transformation (rotation, translation, and scaling) that can solve my problem. However, this function depends on
imwarp which fills the empty space with new pixel (default: black).
As you can see the below image, my ROI inside the red box in the both images.
How can extract this area from the transformed image (float)?
Update: the hardest part is to find the ROI coordinator in the transformed image.