Contents
IMAQ Vision for LabWindows/CVI User Manual vi ni.com
Chapter 3Making Grayscale and Color MeasurementsDefine Regions of Interest.............................................................................................3-1
Defining Regions Interactively.......................................................................3-1
Tools Palette Transformation........................................................... 3-5
Defining Regions Programmatically...............................................................3-6
Defining Regions with Masks.........................................................................3-6
Measure Grayscale Statistics.........................................................................................3-7
Measure Color Statistics................................................................................................3-7
Comparing Colors...........................................................................................3-9
Learning Color Information............................................................................3-9
Specifying the Color Information to Learn ......................................3-9
Choosing a Color Representation Sensitivity................................... 3-12
Ignoring Learned Colors...................................................................3-13
Chapter 4Performing Particle AnalysisCreate 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-3
Make Particle Measurements........................................................................................4-4
Chapter 5Performing Machine Vision TasksLocate Objects to Inspect..............................................................................................5-2
Using Edge Detection to Build a Coordinate Transform................................5-4
Using Pattern Matching to Build a Coordinate Transform............................. 5-6
Choosing a Method to Build the Coordinate Transform.................................5-7
Set Search Areas............................................................................................................5-8
Defining Regions Interactively.......................................................................5-8
Defining Regions Programmatically...............................................................5-9
Find Measurement Points..............................................................................................5-9
Finding Features Using Edge Detection......................................................... 5-9
Finding Lines or Circles...................................................................5-10
Finding Edge Points Along One Search Contour............................. 5-11
Finding Edge Points Along Multiple Search Contours.................... 5-12
Finding Points Using Pattern Matching..........................................................5-13
Defining and Creating Good Template Images................................ 5-13
Training the Pattern Matching Algorithm........................................ 5-15