Chapter 3 making grayscale and color measurements, Chapter 4 performing particle analysis, Chapter 5 performing machine vision tasks – National Instruments IMAQ Vision for LabWindows TM /CVI User Manual

Page 5

Advertising
background image

Contents

IMAQ Vision for LabWindows/CVI User Manual

vi

ni.com

Chapter 3
Making Grayscale and Color Measurements

Define 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 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-3

Make Particle Measurements ........................................................................................ 4-4

Chapter 5
Performing Machine Vision Tasks

Locate 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

Advertising