Contents
IMAQVision for LabWindows/CVI User Manual vi ni.com
Measure Color Statistics................................................................................................3-7
ComparingColors ...........................................................................................3-8
LearningColor Information............................................................................3-9
Choosingthe RightColor Information.............................................3-9
Specifyingt he Color Informationto Learn ...................................... 3-10
Choosing a Color Representation Sensitivity................................... 3-12
IgnoringL earned Colors...................................................................3-13
Chapter 4Blob Analysis
CorrectImage Distortion...............................................................................................4-2
Createa BinaryImage ...................................................................................................4-2
Improve the BinaryI mage.............................................................................................4-3
RemovingUnwanted Blobs ............................................................................4-3
SeparatingTouching Blobs .............................................................................4-4
ImprovingBlob Shapes ...................................................................................4-4
Make Particle Measurements ........................................................................................4-4
ConvertP ixel Coordinatesto Real-World Coordinates ................................................ 4-7
Chapter 5Machine Vision
Locate Objects to Inspect ..............................................................................................5-2
UsingEdge Detection to Build a Coordinate Transform ................................5-3
UsingPattern Matching to Build a Coordinate Transform............................. 5-5
Choosinga Method to Build the Coordinate Transform.................................5-7
SetSearch Areas............................................................................................................5-8
InteractivelyD efining Regions.......................................................................5-8
ProgrammaticallyDefining Regions ...............................................................5-9
FindMeasurement Points..............................................................................................5-9
FindingFeatures Using EdgeDetection ......................................................... 5-9
FindingLines orCircles ...................................................................5-9
FindingEdge Points Along OneSearch Contour .............................5-11
Finding Edge Points Along Multiple Search Contours.................... 5-12
FindingPoints Using Pattern Matching ..........................................................5-13
Definingand Create Good Template Images................................... 5-13
Trainingthe Pattern Matching Algorithm ........................................ 5-15
Defininga Search Area .....................................................................5-15
SettingMatching Parameters and Tolerances................................... 5-16
Testingthe Search Algorithm on Test Images ................................. 5-18
Usinga Ranking Method to Verify Results ......................................5-18
FindingPoints Using Color Pattern Matching ................................................5-18
Definingand Creating G ood Color Template Images......................5-19