Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ particle analysis gives incorrect real world calculations

The particle analysis yields incorrect results. The error is best demonstrated by example:

Given a pixel to real world transformation of 1 pixel = 5 units.

The distance of 10 pixel yields 50 units as it should (using calipers, point to point distance etc).

But a 10 pixel by 10 pixel area (100 pixel^2) gives an answer of 25 units^2 instead of 2500 units^2.

A moment of inertia of 100 pixels^4 gives an answer of 6.25 units^4 instead of 62500 units^4.

Thus (pixels)^n = (.1 units)^n for n >1.


0 Kudos
Message 1 of 2
(2,974 Views)
I guess I had too much eggnog for the solstice. The output for the pixel to real-world is given as 1.0000E+1 pixels <-> to xyz units which is 10 not 1 pixel <-> to xyz units. Thus the .1^n error I had reported above.

I promise not to write any code for a week after New Year's Eve.


0 Kudos
Message 2 of 2
(2,963 Views)