Parameter Property

NI Vision for Visual Basic

Parameter Property

Syntax

CWIMAQDiscriminationData.Parameter Index

Data Type

CWIMAQParticleParameters

You can use the following constants with this data type:

  • cwimaqParticleArea—Surface area of the particle in pixels.
  • cwimaqParticleAreaCalibrated—Surface area in user-defined units.
  • cwimaqParticleAreaScanned—Surface area of the image in user-defined units.
  • cwimaqParticleAreaTotal—Total surface area occupied by a particle and its holes in user-defined units.
  • cwimaqParticleCenterMassX—X-coordinate of the center of gravity of the particle.
  • cwimaqParticleCenterMassY—Y-coordinate of the center of gravity of the particle.
  • cwimaqParticleCompactness—Compactness factor--particle area/(height × width).
  • cwimaqParticleDiagonal—Diagonal of an equivalent rectangle in user-defined units.
  • cwimaqParticleEllipseMajor—Length in calibrated units of the major axis of an ellipse that has the same area and perimeter as the particle.
  • cwimaqParticleEllipseMinor—Length in calibrated units of the minor axis of an ellipse that has the same area and perimeter as the particle.
  • cwimaqParticleElongation—Elongation factor—max intercept/mean perpendicular intercept.
  • cwimaqParticleEquEllipseMinor—Length of the minor axis of an ellipse that has the same area as the particle and a major axis equal to half the max intercept of the particle.
  • cwimaqParticleHeywood—Particle perimeter/perimeter of a circle with the same area as the particle.
  • cwimaqParticleHoleArea—Total surface area of all holes in user-defined units.
  • cwimaqParticleHoleNumber—Number of holes in the particle.
  • cwimaqParticleHolePerimeter—Total perimeter length of all the holes in a particle in user-defined units.
  • cwimaqParticleHydraulicRadius—Hydraulic radius in user-defined units--particle area / particle perimeter.
  • cwimaqParticleIXX—Inertia matrix coefficient in XX.
  • cwimaqParticleIXY—Inertia matrix coefficient in XY.
  • cwimaqParticleIYY—Inertia matrix coefficient in YY.
  • cwimaqParticleMaxIntercept—Length of longest segment of the convex hull.
  • cwimaqParticleMaxSegment—Length of longest horizontal line segment.
  • cwimaqParticleMaxSegmentX—Leftmost x-coordinate of longest horizontal line segment.
  • cwimaqParticleMaxSegmentY—Leftmost y-coordinate of longest horizontal line segment.
  • cwimaqParticleMeanChordX—Mean length of horizontal segments.
  • cwimaqParticleMeanChordY—Mean length of vertical segments.
  • cwimaqParticleMeanIntercept—Mean length of the chords in a particle perpendicular to the max intercept.
  • cwimaqParticleOrientation—The orientation based on the inertia of the pixels in the particle. For more information, refer to Chapter 10, Particle Measurements, of the NI Vision Concepts Manual.
  • cwimaqParticlePerimeter—Perimeter length of a particle in user-defined units.
  • cwimaqParticleProjectionX—The length of the particle when projected onto the x-axis.
  • cwimaqParticleProjectionY—The length of the particle when projected onto the y-axis.
  • cwimaqParticleRatioAreaScanned—Ratio, expressed as a percent, of the total surface area (holes and particle) in relation to the image.
  • cwimaqParticleRatioAreaTotal—Ratio of the surface area of the particle to the total surface area (holes and particle).
  • cwimaqParticleRatioEquEllipse—Fraction of the major axis to the minor axis of the equivalent ellipse.
  • cwimaqParticleRatioRect—Ratio of RectBigSide to RectSmallSide.
  • cwimaqParticleRectBigSide—Length of the long side of a rectangle having the same area and perimeter as the particle in user-defined units.
  • cwimaqParticleRectBottom—Bottom edge of the bounding rectangle.
  • cwimaqParticleRectHeight—Height of the bounding rectangle in user-defined units.
  • cwimaqParticleRectLeft—Left edge of the bounding rectangle.
  • cwimaqParticleRectRight—Right edge of the bounding rectangle.
  • cwimaqParticleRectSmallSide—Length of the short side of a rectangle having the same area and perimeter as the particle in user-defined units.
  • cwimaqParticleRectTop—Top edge of the bounding rectangle.
  • cwimaqParticleRectWidth—Width of the bounding rectangle in user-defined units.
  • cwimaqParticleSigmaX—Sum of the particle pixels on the x-axis.
  • cwimaqParticleSigmaXX—Sum of the particle pixels on the x-axis squared.
  • cwimaqParticleSigmaXY—Sum of the particle pixels on the x-axis and y-axis.
  • cwimaqParticleSigmaY—Sum of the particle pixels on the y-axis.
  • cwimaqParticleSigmaYY—Sum of the particle pixels on the y-axis squared.
  • cwimaqParticleTypeFactor—A complex factor relating the surface area to the moment of inertia.
  • cwimaqParticleWaddelDisk—Diameter of the disk having the same area as the particle in user-defined units.

Purpose

Obsolete—Use CWIMAQParticleSelectionDataItem.Parameter instead.

Coefficient to select.

Remarks

Not all values of CWIMAQParticleParameters are valid for this property. The following values are valid:

cwimaqParticleArea
cwimaqParticleAreaCalibrated
cwimaqParticleHoleNumber
cwimaqParticleHoleArea
cwimaqParticleRectLeft
cwimaqParticleRectTop
cwimaqParticleRectRight
cwimaqParticleRectBottom
cwimaqParticleMaxSegment
cwimaqParticleMaxSegmentX
cwimaqParticleMaxSegmentY
cwimaqParticlePerimeter
cwimaqParticleHolePerimeter
cwimaqParticleSigmaX
cwimaqParticleSigmaY
cwimaqParticleSigmaXX
cwimaqParticleSigmaYY
cwimaqParticleSigmaXY
cwimaqParticleProjectionX
cwimaqParticleProjectionY

Parameters

Index As Long

The index of the object in the report. The index is one-based.

See Also

CWIMAQParticleSelectionDataItem.Parameter