Chapter2 GettingMeasurement-Ready Images
©NationalInstruments Corporation 2-11 IMAQVision for LabWindows/CVI User Manual
Nth Order FilterTheimaqNthOrderFilter() 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 MorphologyPerform 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:
•Erosion—Reduces the brightness of pixels that are surrounded by
neighbors with a lower intensity.
•Dilation—Increases the brightness of pixels surrounded by neighbors
witha higher intensity. A dilation has the opposite effectas an erosion.
•Opening—Removesbright pixels isolated in dark reg ions and smooths
boundaries.
•Closing—Removesdark pixels isolated in bright regions and smooths
boundaries.
•Proper-opening—Removesbright pixel sisol ated in dark regions and
smooths the inner contours of particles.
•Proper-closing—Removesd ark pixels isolated in bright regions and
smooths the inner contours of particles.
•Auto-median—Generatessimpler particles that have fewer details.
Formore information ab out grayscale morphology transformations, see
Chapter5, Image Processing,oftheIMAQVision Concepts Manual.
FFTUse 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.