Convolution Filter; Nth Order Filter; Grayscale Morphology - National Instruments IMAQTM User Manual

Vision for visual basic
Table of Contents

Advertisement

Chapter 2
Getting Measurement-Ready Images

Grayscale Morphology

IMAQ Vision for Visual Basic User Manual
Highpass filters emphasize details, such as edges, object boundaries,
or cracks. These details represent sharp transitions in intensity value.
You can define your own highpass filter with
or
CWIMAQVision.NthOrder
filter with
CWIMAQVision.EdgeFilter
CWIMAQVision.CannyEdgeFilter
allows you to find edges in an image using predefined edge detection
kernels, such as the Sobel, Prewitt, and Roberts kernels.

Convolution Filter

CWIMAQVision.Convolute
lowpass and highpass filters. Each filter is defined by a kernel of
coefficients. Use the CWIMAQKernel object to define the filter. Use
CWIMAQKernel.LoadKernel
object. If the predefined kernels do not meet your needs, use the
CWIMAQKernel.SetSize
CWIMAQKernel.Element

Nth Order Filter

CWIMAQVision.NthOrder
filter depending on the value of N that you choose. One specific Nth order
filter, the median filter, removes speckle noise, which appears as small
black and white dots. For more information about Nth order filters, refer to
Chapter 5, Image Processing, of the IMAQ Vision Concepts Manual.
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 particle analysis.
Grayscale morphological transformations, which include erosions and
dilations, compare a pixel to those pixels that surround it. An erosion keeps
the smallest pixel values. A dilation keeps the largest pixel values.
For more information about grayscale morphology transformations, refer
to Chapter 5, Image Processing, of the IMAQ Vision Concepts Manual.
, or you can use a predefined highpass
or
.
CWIMAQVision.EdgeFilter
allows you to use a predefined set of
to load a predefined kernel into the
method to set the size of the kernel and the
property to set the data in the kernel.
allows you to define a lowpass or highpass
2-10
CWIMAQVision.Convolute
ni.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Imaq

Table of Contents