Chapter2 GettingMeasurement-Ready Images
©NationalInstruments Corporation 2-11 IMAQVision for LabWindows/CVI User Manual
Nth Order Filter
TheimaqNthOrderFilter() function allows you to define a lowpass or
highpass filter depending on the value of Nthat you choose. One specific
Nthorder filter, the median filter, removes speckle noise, which appears as
smallblack and whitedots. Use imaqMedianFilter() to apply a median
filter. For more information about Nth order filters, see Chapter 5, Image
Processing,oftheIMAQVision Concepts Manual.
Grayscale Morphology
Perform grayscale morphology when you want to filter grayscale
features of an image. Grayscale morphology helps you remove or
enhance isolated features, such as bright pixels on a dark background.
Use these transformations on a grayscale image to enhance non-distinct
features before thresholding the image in preparation for blob analysis.
Use imaqGrayMorphology()to perform one of the fo llowingseven
transformations:
ErosionReduces the brightness of pixels that are surrounded by
neighbors with a lower intensity.
DilationIncreases the brightness of pixels surrounded by neighbors
witha higher intensity. A dilation has the opposite effectas an erosion.
OpeningRemovesbright pixels isolated in dark reg ions and smooths
boundaries.
ClosingRemovesdark pixels isolated in bright regions and smooths
boundaries.
Proper-openingRemovesbright pixel sisol ated in dark regions and
smooths the inner contours of particles.
Proper-closingRemovesd ark pixels isolated in bright regions and
smooths the inner contours of particles.
Auto-medianGeneratessimpler particles that have fewer details.
Formore information ab out grayscale morphology transformations, see
Chapter5, Image Processing,oftheIMAQVision Concepts Manual.
FFT
Use the Fast Fourier Transform (FFT) to convert an image into its
frequencydomain. In an image, details and sharp edges are associated
with mid tohigh spatial frequencies because they introduce significant
gray-levelvariations over short distances. Gradually varying patterns are
associated with low spatialfrequencies.