Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How the coordinate values change on rotation?

Solved!
Go to solution

I need to know how the coordinates of the pixels change when they are rotated by a certain angle.

Or suggest some VI which will give the new coordinate values after rotation..

 

pls reply

 

0 Kudos
Message 1 of 11
(5,130 Views)

Hi,

 

You can use 2D Cartesian Coordinate Rotation.vi (from Mathematics->Geometry palette)

 

Andrey.

 

Message 2 of 11
(5,125 Views)

i tried it .. but it also gave negative values ..

how to convert them in to meaningful values..?

 

pls reply

0 Kudos
Message 3 of 11
(5,121 Views)

Combine it with 2D Cartesian Coordinate Shift.vi. You should clear understand where is your rotation center, of course.

 

Andrey.

Message 4 of 11
(5,118 Views)

i tried it .. but it also gave negative values ..

how to convert them in to meaningful values..?

 

pls reply

0 Kudos
Message 5 of 11
(5,117 Views)

Hmmm....

Not fully understand where is your problem? Show your code, please.

Quick and dirty test:

 

Rotate Test.png

 

Andrey.

Message Edited by Andrey Dmitriev on 06-10-2009 01:51 PM
Download All
Message 6 of 11
(5,114 Views)

but still the values are negative...

i want to rotate the overlay for the selected roi..

 

AM UPLOADING THE VI

 

 

 

0 Kudos
Message 7 of 11
(5,109 Views)

If you will do this exercise accurately, then you will get desired result.

Your problem with coordinate shift (if you not maintain size of the rotated image, then it should be used in calculation. Also be accurate with rotated rectangle).

 

Otherwise if you need just rotate ROI for overlay, then you can use IMAQ Transform ROI instead of calculation each point separately. See attached example.

 

Andrey.

 

0 Kudos
Message 8 of 11
(5,103 Views)

iam wrkin in LV 8.2

pls send me a screenshot of the VI.

How do i find the reference?

0 Kudos
Message 9 of 11
(5,101 Views)
Solution
Accepted by topic author siju

Saved in LV 8.2. Screenshot attached.

 

Rotate2.png

 

Andrey.

0 Kudos
Message 10 of 11
(5,096 Views)