Improving Particle Shapes; Make Particle Measurements - National Instruments IMAQTM User Manual

Vision for visual basic
Table of Contents

Advertisement

Chapter 4
Performing Particle Analysis

Improving Particle Shapes

Make Particle Measurements

cwimaqMeasurementArea
cwimaqMeasurementAreaByImageArea
cwimaqMeasurementAreaByParticleAndHolesArea
IMAQ Vision for Visual Basic User Manual
Use
CWIMAQVision.FillHole
CWIMAQVision.Morphology
particles. You can use the Open, Close, Proper Open, Proper Close, and
auto-median operations to smooth the boundaries of the particles. Open and
Proper Open Smooth the boundaries of the particle by removing small
isthmuses, while close widens the isthmuses. Close and Proper Close fill
small holes in the particle. Auto-median removes isthmuses and fills holes.
For more information about these operations, refer to Chapter 9, Binary
Morphology, in the IMAQ Vision Concepts Manual.
After you create a binary image and improve it, you can make particle
measurements. With these measurements you can determine the location of
particles and their shape features. Use the following methods to perform
particle measurements:
CWIMAQVision.ParticleReport
CWIMAQParticleReport object, which contains, for each particle,
nine of the most commonly used measurements, including the particle
area, bounding rectangle, and center of mass. The bounding rectangle
is returned as one measurement, but contains four measurement
elements. The center of mass is returned as one measurement, but
contains two elements.
CWIMAQVision.ParticleMeasurement
measurement you want to apply to all particles, and returns an array
that contains the specified measurement for each particle.
Table 4-1 lists all of the measurements that
CWIMAQVision.ParticleMeasurement
Table 4-1. Measurement Types
Measurement
to fill holes in the particles. Use
to perform a variety of operations on the
—This method returns a
Area of the particle.
Percentage of the particle Area covering
the Image Area.
Percentage of the particle Area in
relation to its Particle & Holes' Area.
4-4
—This method takes the
returns.
Description
ni.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Imaq

Table of Contents