National Instruments IMAQ Vision for LabWindows TM /CVI Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Oprogramowanie National Instruments IMAQ Vision for LabWindows TM /CVI. National Instruments IMAQ Vision for LabWindows TM /CVI User's Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 119
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
IMAQ
TM
IMAQ Vision
for LabWindows
TM
/CVI
TM
User Manual
IMAQ Vision for LabWindows/CVI User Manual
August 2004 Edition
Part Number 371266A-01
Przeglądanie stron 0
1 2 3 4 5 6 ... 118 119

Podsumowanie treści

Strona 1 - User Manual

IMAQ TMIMAQ Vision for LabWindowsTM/CVITM User ManualIMAQ Vision for LabWindows/CVI User ManualAugust 2004 EditionPart Number 371266A-01

Strona 2

About This Manual© National Instruments Corporation xi IMAQ Vision for LabWindows/CVI User ManualOther Documentation• Your National Instruments image

Strona 3 - Important Information

GlossaryIMAQ Vision for LabWindows/CVI User Manual G-4 ni.comconnectivity-4 Only pixels adjacent in the horizontal and vertical directions are conside

Strona 4 - Contents

Glossary© National Instruments Corporation G-5 IMAQ Vision for LabWindows/CVI User Manualedge steepness The number of pixels that corresponds to the s

Strona 5

GlossaryIMAQ Vision for LabWindows/CVI User Manual G-6 ni.comgradient filter An edge detection algorithm that extracts the contours in gray-level valu

Strona 6 - Calibrating Images

Glossary© National Instruments Corporation G-7 IMAQ Vision for LabWindows/CVI User Manualhit-miss function Locates objects in the image similar to the

Strona 7 - Appendix A

GlossaryIMAQ Vision for LabWindows/CVI User Manual G-8 ni.comimage enhancement The process of improving the quality of an image that you acquire from

Strona 8 - About This Manual

Glossary© National Instruments Corporation G-9 IMAQ Vision for LabWindows/CVI User Manualintensity calibration Assigns user-defined quantities such as

Strona 9 - Related Documentation

GlossaryIMAQ Vision for LabWindows/CVI User Manual G-10 ni.comline gauge Measures the distance between selected edges with high-precision subpixel acc

Strona 10 - Other Documentation

Glossary© National Instruments Corporation G-11 IMAQ Vision for LabWindows/CVI User Manualluminance See luma.LUT Lookup table. A table containing valu

Strona 11 - Introduction to IMAQ Vision

GlossaryIMAQ Vision for LabWindows/CVI User Manual G-12 ni.comNneighbor A pixel whose value affects the value of a nearby pixel when an image is proce

Strona 12 - IMAQ Vision Function Tree

Glossary© National Instruments Corporation G-13 IMAQ Vision for LabWindows/CVI User Manualoffset The coordinate position in an image where you want to

Strona 13 - NIMachineVision.fp)

© National Instruments Corporation 1-1 IMAQ Vision for LabWindows/CVI User Manual1Introduction to IMAQ VisionThis chapter describes the IMAQ Vision fo

Strona 14

GlossaryIMAQ Vision for LabWindows/CVI User Manual G-14 ni.comPNG Portable Network Graphic. An image file format for storing 8-bit, 16-bit, and color

Strona 15

Glossary© National Instruments Corporation G-15 IMAQ Vision for LabWindows/CVI User ManualROI Region of interest. (1) An area of the image that is gra

Strona 16

GlossaryIMAQ Vision for LabWindows/CVI User Manual G-16 ni.comspatial filters Alter the intensity of a pixel relative to variations in intensities of

Strona 17 - Getting Measurement-Ready

Glossary© National Instruments Corporation G-17 IMAQ Vision for LabWindows/CVI User ManualVvalue The grayscale intensity of a color pixel computed as

Strona 18 - Create an Image

© National Instruments Corporation I-1 IMAQ Vision for LabWindows/CVI User ManualIndexNumerics1D barcodes, reading, 5-302D arrays, converting to image

Strona 19

IndexIMAQ Vision for LabWindows/CVI User Manual I-2 ni.comcolor informationlearning, 3-9specifying, 3-9color location, using to find points, 5-25color

Strona 20 - Source and Destination Images

Index© National Instruments Corporation I-3 IMAQ Vision for LabWindows/CVI User Manualerror maps, learning, 6-8examples (NI resources), A-1external wi

Strona 21 - Acquire or Read an Image

IndexIMAQ Vision for LabWindows/CVI User Manual I-4 ni.comimproving binary images, 4-2improving sharpness of transitions, 2-10inspecting, 2-8learning

Strona 22 - Reading a File

Index© National Instruments Corporation I-5 IMAQ Vision for LabWindows/CVI User ManualNNational Instruments support and services, A-1NI Vision Assista

Strona 23 - Display an Image

IndexIMAQ Vision for LabWindows/CVI User Manual I-6 ni.comsearch algorithm, testing, 5-18, 5-25search areas, 5-10defining, 5-16, 5-22ROIs, defining se

Strona 24 - Analyze an Image

Chapter 1 Introduction to IMAQ VisionIMAQ Vision for LabWindows/CVI User Manual 1-2 ni.comIMAQ Vision Function TreeThe IMAQ Vision function tree (NIVi

Strona 25 - Improve an Image

Chapter 1 Introduction to IMAQ Vision© National Instruments Corporation 1-3 IMAQ Vision for LabWindows/CVI User ManualIMAQ Machine Vision Function Tre

Strona 26 - Lookup Tables

Chapter 1 Introduction to IMAQ VisionIMAQ Vision for LabWindows/CVI User Manual 1-4 ni.comCreating IMAQ Vision ApplicationsFigures 1-1 and 1-2 illustr

Strona 27 - Grayscale Morphology

Chapter 1 Introduction to IMAQ Vision© National Instruments Corporation 1-5 IMAQ Vision for LabWindows/CVI User ManualFigure 1-1. General Steps for D

Strona 28

Chapter 1 Introduction to IMAQ VisionIMAQ Vision for LabWindows/CVI User Manual 1-6 ni.com Figure 1-2. Inspection Steps for Building a Vision Applica

Strona 29 - Complex Image Operations

© National Instruments Corporation 2-1 IMAQ Vision for LabWindows/CVI User Manual2Getting Measurement-Ready ImagesThis chapter describes how to set up

Strona 30 - Measurements

Chapter 2 Getting Measurement-Ready ImagesIMAQ Vision for LabWindows/CVI User Manual 2-2 ni.com3. Select an IMAQ device that meets your needs. Nationa

Strona 31

Chapter 2 Getting Measurement-Ready Images© National Instruments Corporation 2-3 IMAQ Vision for LabWindows/CVI User ManualYou can create multiple ima

Strona 32

SupportWorldwide Technical Support and Product Informationni.comNational Instruments Corporate Headquarters11500 North Mopac Expressway Austin, Texas

Strona 33 - Figure 3-2. ROI Constructor

Chapter 2 Getting Measurement-Ready ImagesIMAQ Vision for LabWindows/CVI User Manual 2-4 ni.comSource and Destination ImagesSome IMAQ Vision functions

Strona 34 - Tools Palette Transformation

Chapter 2 Getting Measurement-Ready Images© National Instruments Corporation 2-5 IMAQ Vision for LabWindows/CVI User Manual• imaqAdd(myImageA, myImage

Strona 35 - Defining Regions with Masks

Chapter 2 Getting Measurement-Ready ImagesIMAQ Vision for LabWindows/CVI User Manual 2-6 ni.comAcquiring an ImageUse one of the following methods to a

Strona 36 - Measure Color Statistics

Chapter 2 Getting Measurement-Ready Images© National Instruments Corporation 2-7 IMAQ Vision for LabWindows/CVI User ManualUse imaqReadVisionFile() to

Strona 37 - 8-bit image

Chapter 2 Getting Measurement-Ready ImagesIMAQ Vision for LabWindows/CVI User Manual 2-8 ni.comAttach Calibration InformationIf you want to attach the

Strona 38 - Learning Color Information

Chapter 2 Getting Measurement-Ready Images© National Instruments Corporation 2-9 IMAQ Vision for LabWindows/CVI User ManualIf the image quality meets

Strona 39 - Using a Region in the Image

Chapter 2 Getting Measurement-Ready ImagesIMAQ Vision for LabWindows/CVI User Manual 2-10 ni.comLookup TablesApply lookup table (LUT) transformations

Strona 40

Chapter 2 Getting Measurement-Ready Images© National Instruments Corporation 2-11 IMAQ Vision for LabWindows/CVI User ManualConvolution FilterThe imaq

Strona 41

Chapter 2 Getting Measurement-Ready ImagesIMAQ Vision for LabWindows/CVI User Manual 2-12 ni.com• Closing—Removes dark pixels isolated in bright regio

Strona 42 - Ignoring Learned Colors

Chapter 2 Getting Measurement-Ready Images© National Instruments Corporation 2-13 IMAQ Vision for LabWindows/CVI User Manualattenuation increases. Thi

Strona 43 - Performing Particle Analysis

Important InformationWarrantyThe media on which you receive National Instruments software are warranted not to fail to execute programming instructio

Strona 44 - Improve the Binary Image

© National Instruments Corporation 3-1 IMAQ Vision for LabWindows/CVI User Manual3Making Grayscale and Color MeasurementsThis chapter describes how to

Strona 45 - Improving Particle Shapes

Chapter 3 Making Grayscale and Color MeasurementsIMAQ Vision for LabWindows/CVI User Manual 3-2 ni.comTable 3-1 describes each of the tools and the ma

Strona 46 - Make Particle Measurements

Chapter 3 Making Grayscale and Color Measurements© National Instruments Corporation 3-3 IMAQ Vision for LabWindows/CVI User ManualHold down the <Sh

Strona 47

Chapter 3 Making Grayscale and Color MeasurementsIMAQ Vision for LabWindows/CVI User Manual 3-4 ni.comYou can display the IMAQ Vision tools palette as

Strona 48

Chapter 3 Making Grayscale and Color Measurements© National Instruments Corporation 3-5 IMAQ Vision for LabWindows/CVI User Manual3. Click OK to popul

Strona 49

Chapter 3 Making Grayscale and Color MeasurementsIMAQ Vision for LabWindows/CVI User Manual 3-6 ni.comThe following list describes how you can display

Strona 50

Chapter 3 Making Grayscale and Color Measurements© National Instruments Corporation 3-7 IMAQ Vision for LabWindows/CVI User Manualor a labeled version

Strona 51

Chapter 3 Making Grayscale and Color MeasurementsIMAQ Vision for LabWindows/CVI User Manual 3-8 ni.comFigure 3-4. Primary Components of a 32-Bit Colo

Strona 52

Chapter 3 Making Grayscale and Color Measurements© National Instruments Corporation 3-9 IMAQ Vision for LabWindows/CVI User ManualComparing ColorsYou

Strona 53 - Performing Machine Vision

Chapter 3 Making Grayscale and Color MeasurementsIMAQ Vision for LabWindows/CVI User Manual 3-10 ni.comFigure 3-6. Template Color InformationThe foll

Strona 54 - Locate Objects to Inspect

© National Instruments Corporation v IMAQ Vision for LabWindows/CVI User ManualContentsAbout This ManualConventions ...

Strona 55

Chapter 3 Making Grayscale and Color Measurements© National Instruments Corporation 3-11 IMAQ Vision for LabWindows/CVI User Manual Figure 3-8. Using

Strona 56

Chapter 3 Making Grayscale and Color MeasurementsIMAQ Vision for LabWindows/CVI User Manual 3-12 ni.comFigure 3-9. Using Multiple Regions to Learn Co

Strona 57 - IMAQ_UPDATE_TRANSFORM

Chapter 3 Making Grayscale and Color Measurements© National Instruments Corporation 3-13 IMAQ Vision for LabWindows/CVI User ManualIgnoring Learned Co

Strona 58

© National Instruments Corporation 4-1 IMAQ Vision for LabWindows/CVI User Manual4Performing Particle AnalysisThis chapter describes how to perform pa

Strona 59

Chapter 4 Performing Particle AnalysisIMAQ Vision for LabWindows/CVI User Manual 4-2 ni.comIf all the objects in your grayscale image are either brigh

Strona 60 - Set Search Areas

Chapter 4 Performing Particle Analysis© National Instruments Corporation 4-3 IMAQ Vision for LabWindows/CVI User ManualRemoving Unwanted ParticlesUse

Strona 61 - Find Measurement Points

Chapter 4 Performing Particle AnalysisIMAQ Vision for LabWindows/CVI User Manual 4-4 ni.comisthmuses while close widens the isthmuses. Close and prope

Strona 62 - Finding Lines or Circles

Chapter 4 Performing Particle Analysis© National Instruments Corporation 4-5 IMAQ Vision for LabWindows/CVI User ManualIMAQ_MT_BOUNDING_RECT_LEFTX-coo

Strona 63

Chapter 4 Performing Particle AnalysisIMAQ Vision for LabWindows/CVI User Manual 4-6 ni.comIMAQ_MT_EQUIVALENT_ELLIPSE_MAJOR_AXISLength of the major ax

Strona 64

Chapter 4 Performing Particle Analysis© National Instruments Corporation 4-7 IMAQ Vision for LabWindows/CVI User ManualIMAQ_MT_HU_MOMENT_5Fifth Hu mom

Strona 65

ContentsIMAQ Vision for LabWindows/CVI User Manual vi ni.comChapter 3Making Grayscale and Color MeasurementsDefine Regions of Interest...

Strona 66 - Feature Detail

Chapter 4 Performing Particle AnalysisIMAQ Vision for LabWindows/CVI User Manual 4-8 ni.comIMAQ_MT_MAX_FERET_DIAMETER_START_YY-coordinate of the start

Strona 67 - Background Information

Chapter 4 Performing Particle Analysis© National Instruments Corporation 4-9 IMAQ Vision for LabWindows/CVI User ManualIMAQ_MT_NORM_MOMENT_OF_INERTIA_

Strona 68 - Defining a Search Area

Chapter 4 Performing Particle AnalysisIMAQ Vision for LabWindows/CVI User Manual 4-10 ni.comIMAQ_MT_SUM_XXSum of all x-coordinates squared in the part

Strona 69 - Match Mode

© National Instruments Corporation 5-1 IMAQ Vision for LabWindows/CVI User Manual5Performing Machine Vision TasksThis chapter describes how to perform

Strona 70 - Rotation Angle Ranges

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-2 ni.comFigure 5-1 illustrates the basic steps involved in perfo

Strona 71

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-3 IMAQ Vision for LabWindows/CVI User Manualit appears shifted and rotat

Strona 72 - Color Information

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-4 ni.comUsing Edge Detection to Build a Coordinate TransformYou

Strona 73

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-5 IMAQ Vision for LabWindows/CVI User Manualb. If you use imaqFindTransf

Strona 74

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-6 ni.comUsing Pattern Matching to Build a Coordinate TransformYo

Strona 75 - Search Strategy

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-7 IMAQ Vision for LabWindows/CVI User ManualChoosing a Method to Build t

Strona 76 - Color Score Weight

Contents© National Instruments Corporation vii IMAQ Vision for LabWindows/CVI User ManualDefining a Search Area ...

Strona 77

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-8 ni.comSet Search AreasYou use ROIs to define search areas in y

Strona 78 - Make Measurements

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-9 IMAQ Vision for LabWindows/CVI User ManualDefining Regions Programmati

Strona 79

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-10 ni.comFinding Lines or CirclesIf you want to find points alon

Strona 80 - Classifying Samples

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-11 IMAQ Vision for LabWindows/CVI User ManualIf you want to find points

Strona 81 - Reading Characters

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-12 ni.comThese functions require you to input the coordinates of

Strona 82 - Reading Data Matrix Barcodes

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-13 IMAQ Vision for LabWindows/CVI User ManualFinding Points Using Patter

Strona 83 - Display Results

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-14 ni.comSymmetryA rotationally symmetric template, shown in Fig

Strona 84

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-15 IMAQ Vision for LabWindows/CVI User ManualPositional InformationA tem

Strona 85

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-16 ni.comthe template that are necessary for shift-invariant mat

Strona 86

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-17 IMAQ Vision for LabWindows/CVI User ManualFigure 5-11. Selecting a S

Strona 87 - Chapter 6 Calibrating Images

ContentsIMAQ Vision for LabWindows/CVI User Manual viii ni.comAppendix ATechnical Support and Professional ServicesGlossaryIndex

Strona 88 - CoordinateSystem

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-18 ni.comMinimum ContrastThe pattern matching algorithm ignores

Strona 89

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-19 IMAQ Vision for LabWindows/CVI User ManualUsing a Ranking Method to V

Strona 90

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-20 ni.com5. Set the tolerances and parameters to specify how the

Strona 91 - Choosing a Learning Algorithm

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-21 IMAQ Vision for LabWindows/CVI User ManualBackground InformationUniqu

Strona 92 - Using the Learning Score

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-22 ni.comDefining a Search AreaTwo equally important factors def

Strona 93 - Calibration Invalidation

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-23 IMAQ Vision for LabWindows/CVI User ManualThe time required to locate

Strona 94 - Simple Calibration

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-24 ni.comChoose from the following search strategies:•IMAQ_CONSE

Strona 95 - Save Calibration Information

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-25 IMAQ Vision for LabWindows/CVI User ManualRotation Angle RangesRefer

Strona 96 - Professional Services

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-26 ni.com6. Test the color location algorithm on test images usi

Strona 97

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-27 IMAQ Vision for LabWindows/CVI User ManualAnalytic Geometry Measureme

Strona 98

© National Instruments Corporation ix IMAQ Vision for LabWindows/CVI User ManualAbout This ManualThe IMAQ Vision for LabWindows/CVI User Manual is int

Strona 99

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-28 ni.comUse imaqFindLCDSegments() to calculate the ROI around e

Strona 100 - Glossary

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-29 IMAQ Vision for LabWindows/CVI User ManualThe following code sample p

Strona 101

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-30 ni.comReading BarcodesUse barcode reading functions to read v

Strona 102

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-31 IMAQ Vision for LabWindows/CVI User ManualBy default, imaqReadDataMat

Strona 103

Chapter 5 Performing Machine Vision TasksIMAQ Vision for LabWindows/CVI User Manual 5-32 ni.comUse the following functions to overlay search regions,

Strona 104

Chapter 5 Performing Machine Vision Tasks© National Instruments Corporation 5-33 IMAQ Vision for LabWindows/CVI User ManualThe following list contains

Strona 105

© National Instruments Corporation 6-1 IMAQ Vision for LabWindows/CVI User Manual6Calibrating ImagesThis chapter describes how to calibrate your imagi

Strona 106

Chapter 6 Calibrating ImagesIMAQ Vision for LabWindows/CVI User Manual 6-2 ni.comRefer to Chapter 5, Performing Machine Vision Tasks, for more informa

Strona 107

Chapter 6 Calibrating Images© National Instruments Corporation 6-3 IMAQ Vision for LabWindows/CVI User ManualDefining a Reference Coordinate SystemTo

Strona 108

Chapter 6 Calibrating ImagesIMAQ Vision for LabWindows/CVI User Manual 6-4 ni.comFigure 6-3. A Calibration Grid and an Image of the GridNoteIf you sp

Strona 109

About This ManualIMAQ Vision for LabWindows/CVI User Manual x ni.comRelated DocumentationIn addition to this manual, the following documentation resou

Strona 110

Chapter 6 Calibrating Images© National Instruments Corporation 6-5 IMAQ Vision for LabWindows/CVI User ManualFigure 6-4. Defining a Coordinate System

Strona 111

Chapter 6 Calibrating ImagesIMAQ Vision for LabWindows/CVI User Manual 6-6 ni.comSpecifying Scaling FactorsScaling factors are the real-world distance

Strona 112

Chapter 6 Calibrating Images© National Instruments Corporation 6-7 IMAQ Vision for LabWindows/CVI User ManualChoose the perspective projection algorit

Strona 113

Chapter 6 Calibrating ImagesIMAQ Vision for LabWindows/CVI User Manual 6-8 ni.comIf the learning process returns a learning score below 600, try the f

Strona 114 - Numerics

Chapter 6 Calibrating Images© National Instruments Corporation 6-9 IMAQ Vision for LabWindows/CVI User ManualSimple CalibrationWhen the axis of your c

Strona 115

Chapter 6 Calibrating ImagesIMAQ Vision for LabWindows/CVI User Manual 6-10 ni.comSave Calibration InformationAfter you learn the calibration informat

Strona 116

© National Instruments Corporation A-1 IMAQ Vision for LabWindows/CVI User ManualATechnical Support and Professional ServicesVisit the following secti

Strona 117

© National Instruments Corporation G-1 IMAQ Vision for LabWindows/CVI User ManualGlossaryNumbers1D One-dimensional.2D Two-dimensional.3D Three-dimensi

Strona 118

GlossaryIMAQ Vision for LabWindows/CVI User Manual G-2 ni.combarycenter The grayscale value representing the centroid of the range of an image’s grays

Strona 119

Glossary© National Instruments Corporation G-3 IMAQ Vision for LabWindows/CVI User ManualCcaliper (1) A function in the NI Vision Assistant and in NI

Komentarze do niniejszej Instrukcji

Brak uwag