04-28-2009 11:35 AM
Hi,
I am using LabVIEW 8.5 and Vision 8.5.
I need to rotate, scale and shift an 2D image with respect to a particular point in the image. I am using IMAQ Rotate and Shift, but I am not sure what is the reference or origin point used in these function. The coordinates of the image is very important in my application because I need these coordinate to perform image registration.
My question are as below:
1) The origin (0,0) of an image is located in the top left corner, can I change it to the center of the image?
2) How can I specified a certain point (coordinate) as a reference for the rotation and scaling?
Your help is much appreciated. Thank You.
Solved! Go to Solution.
05-05-2009 06:51 AM
Hi,
The rotate function will always rotate about the center of the image. Put the original image in to a larger area of interest (larger image) so you can move it around freely. Move it so that the reference point you have chosen on the original image is now the center of the larger image it's in. Then rotate the larger image and extract the original image.
Best regards,
Tony_G
05-05-2009 07:49 AM
Hi,
Thanks for the idea, I will try it out soon.
Best Wishes,