MeasurementType
Various measurements that can be taken on a particle. Refer to the NI Vision Concepts Manual for further discussion of these measurements.
Elements
Name | Value | Description |
---|---|---|
IMAQ_MT_CENTER_OF_MASS_X | 0 | X-coordinate of the point representing the average position of the total particle mass, assuming every point in the particle has a constant density. |
IMAQ_MT_CENTER_OF_MASS_Y | 1 | Y-coordinate of the point representing the average position of the total particle mass, assuming every point in the particle has a constant density. |
IMAQ_MT_FIRST_PIXEL_X | 2 | X-coordinate of the highest, leftmost particle pixel. |
IMAQ_MT_FIRST_PIXEL_Y | 3 | Y-coordinate of the highest, leftmost particle pixel. |
IMAQ_MT_BOUNDING_RECT_LEFT | 4 | X-coordinate of the leftmost particle point. |
IMAQ_MT_BOUNDING_RECT_TOP | 5 | Y-coordinate of highest particle point. |
IMAQ_MT_BOUNDING_RECT_RIGHT | 6 | X-coordinate of the rightmost particle point. |
IMAQ_MT_BOUNDING_RECT_BOTTOM | 7 | Y-coordinate of the lowest particle point. |
IMAQ_MT_MAX_FERET_DIAMETER_START_X | 8 | X-coordinate of the start of the line segment connecting the two perimeter points that are the furthest apart. |
IMAQ_MT_MAX_FERET_DIAMETER_START_Y | 9 | Y-coordinate of the start of the line segment connecting the two perimeter points that are the furthest apart. |
IMAQ_MT_MAX_FERET_DIAMETER_END_X | 10 | X-coordinate of the end of the line segment connecting the two perimeter points that are the furthest apart. |
IMAQ_MT_MAX_FERET_DIAMETER_END_Y | 11 | Y-coordinate of the end of the line segment connecting the two perimeter points that are the furthest apart. |
IMAQ_MT_MAX_HORIZ_SEGMENT_LENGTH_LEFT | 12 | X-coordinate of the leftmost pixel in the longest row of contiguous pixels in the particle. |
IMAQ_MT_MAX_HORIZ_SEGMENT_LENGTH_RIGHT | 13 | X-coordinate of the rightmost pixel in the longest row of contiguous pixels in the particle. |
IMAQ_MT_MAX_HORIZ_SEGMENT_LENGTH_ROW | 14 | Y-coordinate of all of the pixels in the longest row of contiguous pixels in the particle. |
IMAQ_MT_BOUNDING_RECT_WIDTH | 16 | Distance between the x-coordinate of the leftmost particle point and the x-coordinate of the rightmost particle point. |
IMAQ_MT_BOUNDING_RECT_HEIGHT | 17 | Distance between the y-coordinate of highest particle point and the y-coordinate of the lowest particle point. |
IMAQ_MT_BOUNDING_RECT_DIAGONAL | 18 | Distance between opposite corners of the bounding rectangle. |
IMAQ_MT_PERIMETER | 19 | Length of the outer boundary of the particle. |
IMAQ_MT_CONVEX_HULL_PERIMETER | 20 | Perimeter of the smallest convex polygon containing all points in the particle. |
IMAQ_MT_HOLES_PERIMETER | 21 | Sum of the perimeters of each hole in the particle. |
IMAQ_MT_MAX_FERET_DIAMETER | 22 | Distance between the start and end of the line segment connecting the two perimeter points that are the furthest apart. |
IMAQ_MT_EQUIVALENT_ELLIPSE_MAJOR_AXIS | 23 | Length of the major axis of the ellipse with the same perimeter and area as the particle. |
IMAQ_MT_EQUIVALENT_ELLIPSE_MINOR_AXIS | 24 | Length of the minor axis of the ellipse with the same perimeter and area as the particle. |
IMAQ_MT_EQUIVALENT_ELLIPSE_MINOR_AXIS_FERET | 25 | Length of the minor axis of the ellipse with the same area as the particle, and Major Axis equal in length to the Max Feret Diameter. |
IMAQ_MT_EQUIVALENT_RECT_LONG_SIDE | 26 | Longest side of the rectangle with the same perimeter and area as the particle. |
IMAQ_MT_EQUIVALENT_RECT_SHORT_SIDE | 27 | Shortest side of the rectangle with the same perimeter and area as the particle. |
IMAQ_MT_EQUIVALENT_RECT_DIAGONAL | 28 | Distance between opposite corners of the rectangle with the same perimeter and area as the particle. |
IMAQ_MT_EQUIVALENT_RECT_SHORT_SIDE_FERET | 29 | Shortest side of the rectangle with the same area as the particle, and longest side equal in length to the Max Feret Diameter. |
IMAQ_MT_AVERAGE_HORIZ_SEGMENT_LENGTH | 30 | Average length of a horizontal segment in the particle. |
IMAQ_MT_AVERAGE_VERT_SEGMENT_LENGTH | 31 | Average length of a vertical segment in the particle. |
IMAQ_MT_HYDRAULIC_RADIUS | 32 | The particle area divided by the particle perimeter. |
IMAQ_MT_WADDEL_DISK_DIAMETER | 33 | Diameter of a disk with the same area as the particle. |
IMAQ_MT_AREA | 35 | Area of the particle. |
IMAQ_MT_HOLES_AREA | 36 | Sum of the areas of each hole in the particle. |
IMAQ_MT_PARTICLE_AND_HOLES_AREA | 37 | Area of a particle that completely covers the image. |
IMAQ_MT_CONVEX_HULL_AREA | 38 | Area of the smallest convex polygon containing all points in the particle. |
IMAQ_MT_IMAGE_AREA | 39 | Area of the image. |
IMAQ_MT_NUMBER_OF_HOLES | 41 | Number of holes in the particle. |
IMAQ_MT_NUMBER_OF_HORIZ_SEGMENTS | 42 | Number of horizontal segments in the particle. |
IMAQ_MT_NUMBER_OF_VERT_SEGMENTS | 43 | Number of vertical segments in the particle. |
IMAQ_MT_ORIENTATION | 45 | The angle of the line that passes through the particle Center of Mass about which the particle has the lowest moment of inertia. |
IMAQ_MT_MAX_FERET_DIAMETER_ORIENTATION | 46 | The angle of the line segment connecting the two perimeter points that are the furthest apart. |
IMAQ_MT_AREA_BY_IMAGE_AREA | 48 | Percentage of the particle Area covering the Image Area. |
IMAQ_MT_AREA_BY_PARTICLE_AND_HOLES_AREA | 49 | Percentage of the particle Area in relation to its Particle and Holes Area. |
IMAQ_MT_RATIO_OF_EQUIVALENT_ELLIPSE_AXES | 50 | Equivalent Ellipse Major Axis divided by Equivalent Ellipse Minor Axis. |
IMAQ_MT_RATIO_OF_EQUIVALENT_RECT_SIDES | 51 | Equivalent Rect Long Side divided by Equivalent Rect Short Side. |
IMAQ_MT_ELONGATION_FACTOR | 53 | Max Feret Diameter divided by Equivalent Rect Short Side (Feret). |
IMAQ_MT_COMPACTNESS_FACTOR | 54 | Area divided by the product of Bounding Rect Width and Bounding Rect Height. |
IMAQ_MT_HEYWOOD_CIRCULARITY_FACTOR | 55 | Perimeter divided by the circumference of a circle with the same area. |
IMAQ_MT_TYPE_FACTOR | 56 | Factor relating area to moment of inertia. |
IMAQ_MT_SUM_X | 58 | The sum of all x-coordinates in the particle. |
IMAQ_MT_SUM_Y | 59 | The sum of all y-coordinates in the particle. |
IMAQ_MT_SUM_XX | 60 | The sum of all x-coordinates squared in the particle. |
IMAQ_MT_SUM_XY | 61 | The sum of all x-coordinates times y-coordinates in the particle. |
IMAQ_MT_SUM_YY | 62 | The sum of all y-coordinates squared in the particle. |
IMAQ_MT_SUM_XXX | 63 | The sum of all x-coordinates cubed in the particle. |
IMAQ_MT_SUM_XXY | 64 | The sum of all x-coordinates squared times y-coordinates in the particle. |
IMAQ_MT_SUM_XYY | 65 | The sum of all x-coordinates times y-coordinates squared in the particle. |
IMAQ_MT_SUM_YYY | 66 | The sum of all y-coordinates cubed in the particle. |
IMAQ_MT_MOMENT_OF_INERTIA_XX | 68 | The moment of inertia in the x-direction twice. |
IMAQ_MT_MOMENT_OF_INERTIA_XY | 69 | The moment of inertia in the x and y directions. |
IMAQ_MT_MOMENT_OF_INERTIA_YY | 70 | The moment of inertia in the y-direction twice. |
IMAQ_MT_MOMENT_OF_INERTIA_XXX | 71 | The moment of inertia in the x-direction three times. |
IMAQ_MT_MOMENT_OF_INERTIA_XXY | 72 | The moment of inertia in the x-direction twice and the y-direction once. |
IMAQ_MT_MOMENT_OF_INERTIA_XYY | 73 | The moment of inertia in the x-direction once and the y-direction twice. |
IMAQ_MT_MOMENT_OF_INERTIA_YYY | 74 | The moment of inertia in the y-direction three times. |
IMAQ_MT_NORM_MOMENT_OF_INERTIA_XX | 75 | The normalized moment of inertia in the x-direction twice. |
IMAQ_MT_NORM_MOMENT_OF_INERTIA_XY | 76 | The normalized moment of inertia in the x- and y-directions. |
IMAQ_MT_NORM_MOMENT_OF_INERTIA_YY | 77 | The normalized moment of inertia in the y-direction twice. |
IMAQ_MT_NORM_MOMENT_OF_INERTIA_XXX | 78 | The normalized moment of inertia in the x-direction three times. |
IMAQ_MT_NORM_MOMENT_OF_INERTIA_XXY | 79 | The normalized moment of inertia in the x-direction twice and the y-direction once. |
IMAQ_MT_NORM_MOMENT_OF_INERTIA_XYY | 80 | The normalized moment of inertia in the x-direction once and the y-direction twice. |
IMAQ_MT_NORM_MOMENT_OF_INERTIA_YYY | 81 | The normalized moment of inertia in the y-direction three times. |
IMAQ_MT_HU_MOMENT_1 | 82 | The first Hu moment. |
IMAQ_MT_HU_MOMENT_2 | 83 | The second Hu moment. |
IMAQ_MT_HU_MOMENT_3 | 84 | The third Hu moment. |
IMAQ_MT_HU_MOMENT_4 | 85 | The fourth Hu moment. |
IMAQ_MT_HU_MOMENT_5 | 86 | The fifth Hu moment. |
IMAQ_MT_HU_MOMENT_6 | 87 | The sixth Hu moment. |
IMAQ_MT_HU_MOMENT_7 | 88 | The seventh Hu moment. |
IMAQ_MEASUREMENT_TYPE_SIZE_GUARD | 0xFFFFFFFF | Reserved |