Contents
IMAQ Vision for Visual Basic User Manual
vi
ni.com
Grayscale Morphology.................................................................................... 2-10
FFT.................................................................................................................. 2-11
Complex Image Operations .............................................................. 2-12
Chapter 3
Making Grayscale and Color Measurements
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
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
Chapter 5
Performing Machine Vision Tasks
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