LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Rotate and Shift image using different Origin

Solved!
Go to solution

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.

 

0 Kudos
Message 1 of 3
(3,762 Views)

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

0 Kudos
Message 2 of 3
(3,713 Views)
Solution
Accepted by topic author yshow82

Hi,

 

Thanks for the idea, I will try it out soon.

 

Best Wishes, 

0 Kudos
Message 3 of 3
(3,706 Views)