LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ image rotation not working with all values

Hi guys,

 

we have a strange issue with the IMAQ rotate VI from LabVIEW. With some values it doesn't work or gives a wrong result.

For example:

 

  • -2.0 --> rotates -1.9°
  • -1.9 --> rotates -1.76°
  • -1.8 --> rotates also -1.76°
 

The rotation values were checked using GIMP measurement tool.

Does this make any sense?

 

Thanks for your help!

 

0 Kudos
Message 1 of 4
(2,100 Views)

This is a variation on "Floats vs Integers".  Your Image line is made up of pixels, which have an integer "address" and can thus vary up or down by units of 1 pixel.  So if you have a horizontal line 500 pixels long and lift one end by 1 pixel (the smallest amount you can change it), it will be at an angle of 0.115 degrees, which is as close to 0.1 degrees as it is (mathematically) possible to get.

 

Bob Schor

Message 2 of 4
(2,041 Views)

Thanks!

 

Yet I thought LabVIEW supported subpixel accuracy...?

0 Kudos
Message 3 of 4
(2,037 Views)

Sub-pixel interpolation for measurements using edge finders. It is quite impressive as my latest project has proven to resolve ~0.1um with a native per-pixel resolution of 2.3um/pixel.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 4
(2,032 Views)