I am doing a project on Image Registration.
I used phase correlation technique to calculate the translational parameter.
I also got the rotation angle of the image using "IMAQ Find Pattern.vi". But my problem is when I rotated the image in opposite angle to recover the rotation it pads block area (Pads zeros)(to avoid information loss). So when I used that image for phase correlation it gives wrong results because of that block area.
Please download the attachement " Test_Images.zip " before analyzing my problem.
'Original.jpg' is the original image.
'Part_1.jpg' is the part of the image taken from 'Original.jpg'
'Original_30.jpg' is the rotated version of 'Original.jpg' (30 degree in Clockwise direction).
'Rotate_30.jpg' is the part of the image taken from 'Original_30.jpg'
'Part_1.jpg' And 'Rotate_30.jpg' have some common part (Near the wheel of the car).
Using 'IMAQ Find Pattern.vi' , I am able to get the rotation angle.
I Used 'IMAQ Rotate.vi ' to nullify the rotation of image (Rotate_30.jpg) to register with the first image (Part_1.jpg) (i.e Rotate 'Rotate_30.jpg' -30 Degree OR 30 Degree in anti clockwise direction)
'Recovered_30.jpg' is the result of 'IMAQ Rotate.vi ' operation.
But as we can see in the image 'Recovered_30.jpg' the above said operation pads 'Black Area' to the rotated image.
So while attempting to register images (Part_1.jpg and Recovered_30.jpg) it gives error.(i.e I am getting wrong result).
So I want to remove that black part from the 'Recovered_30.jpg' image.
Please help me to solve this problem.
If you have any other idea please let me know
Thanking you
AKSHARA.T.G