Contents
IMAQ Vision for Visual Basic User Manual vi ni.com
Improve an Image..........................................................................................................2-9
Lookup Tables.................................................................................................2-9
Filters .............................................................................................................. 2-9
Convolution Filter.............................................................................2-10
Nth Order Filter ................................................................................ 2-10
Grayscale Morphology.................................................................................... 2-10
FFT..................................................................................................................2-11
Complex Image Operations..............................................................2-12
Chapter 3
Making Grayscale and Color Measurements
Define Regions of Interest.............................................................................................3-1
Defining Regions Interactively....................................................................... 3-1
Defining Regions Programmatically............................................................... 3-5
Defining Regions with Masks.........................................................................3-6
Measure Grayscale Statistics.........................................................................................3-6
Measure Color Statistics................................................................................................ 3-7
Comparing Colors...........................................................................................3-9
Learning Color Information............................................................................3-9
Specifying the Color Information to Learn ......................................3-10
Using the Entire Image..................................................................... 3-10
Choosing a Color Representation Sensitivity...................................3-12
Ignoring Learned Colors...................................................................3-13
Chapter 4
Performing Particle Analysis
Create a Binary Image................................................................................................... 4-1
Improve the Binary Image............................................................................................. 4-2
Removing Unwanted Particles........................................................................4-3
Separating Touching Particles ........................................................................4-3
Improving Particle Shapes ..............................................................................4-4
Make Particle Measurements ........................................................................................4-4
Chapter 5
Performing Machine Vision Tasks
Locate Objects to Inspect .............................................................................................. 5-2
Using Edge Detection to Build a Coordinate Transformation........................5-3
Using Pattern Matching to Build a Coordinate Transformation.....................5-5
Choosing a Method to Build the Coordinate Transformation.........................5-7