Chapter4 BlobAnalysis
©NationalInstruments Corporation 4-7 IMAQVision for LabWindows/CVI User Manual
Convert Pixel Coordinates to Real-World Coordinates
Ify ou need to find the location of the center of mass or the bounding
rectangle of the blobs in real-world units, use
imaqTransformPixelToRealWorld().
IMAQ_ELLIPSE_MAJOR totallength of the major axis of the ellipse having the
samearea and perimeteras the particlein user-defined
units
IMAQ_ELLIPSE_MINOR totallen gth of the minor axis of the ellipse having the
samearea and perimeteras the particlein user-defined
units
IMAQ_ELLIPSE_RATIO fractionof the lengt h of the major axis to the length of
the minor axis of the ellipse having the same area and
perimeter as the particle in user-definedunits
IMAQ_RECT_LONG_SIDE lengtho fthe lon g side ofa rectan gle havingthe same
areaand p erimeteras the particlein user-defined units
IMAQ_RECT_SHORT_SIDE lengtho fthe shor t side ofa rectan gle havingthe same
areaand p erimeteras the particlein user-defined units
IMAQ_RECT_RATIO ratioof rectangle long side to rectangle short side
IMAQ_ELONGATION maxintercept/mean perpendicular intercept
IMAQ_COMPACTNESS particlearea/(height ×width)
IMAQ_HEYWOOD particle perimeter/perimeter of circle having same area
as the particle
IMAQ_TYPE_FACTOR complexfactor relating the surface area to the moment of
inertia
IMAQ_HYDRAULIC particlear ea/particle perimeter
IMAQ_WADDLE_DISK diameterof the disk having the same area as the particle
in user-definedunits
IMAQ_DIAGONAL diagonalof an equivalent rectangle in user-defined units
Table4-1. Particle Measurements (Continued)
Measurement Description