ユーザーズマニュアル目次IMAQ Vision for Visual Basic User Manual1Support2Worldwide Technical Support and Product Information2National Instruments Corporate Headquarters2Worldwide Offices2Important Information3Warranty3Copyright3Trademarks3WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS3Contents4About This Manual8Conventions8Related Documentation9IMAQ Vision9NI Vision Assistant9NI Vision Builder for Automated Inspection9Other Documentation10Chapter 1 Introduction to IMAQ Vision11About IMAQ Vision11Documentation and Examples11IMAQ Vision for Visual Basic Organization12cwimaq.ocx13CWIMAQ Control13CWIMAQVision Control13CWIMAQViewer Control13niocr.ocx14NIOCR control14cwmv.ocx14CWMachineVision control14ActiveX Objects15Creating IMAQ Vision Applications15Figure 1-1. General Steps for Designing a Vision Application16Figure 1-2. Inspection Steps for Building a Vision Application17Chapter 2 Getting Measurement-Ready Images18Set Up Your Imaging System18Calibrate Your Imaging System19Create an Image19Acquire or Read an Image21Acquiring an Image21One-Shot Acquisition21Continuous Acquisition22Reading a File23Converting an Array to an Image23Display an Image23Attach Calibration Information24Analyze an Image24Improve an Image26Lookup Tables26Filters26Convolution Filter27Nth Order Filter27Grayscale Morphology27FFT28Complex Image Operations29Chapter 3 Making Grayscale and Color Measurements30Figure 3-1. Steps to Taking Grayscale and Color Measurements30Define Regions of Interest30Defining Regions Interactively30Table 3-1. Tools Palette Functions31Figure 3-2. Tools Information33Defining Regions Programmatically34Table 3-2. Methods that Add Shapes to Regions34Defining Regions with Masks35Measure Grayscale Statistics35Measure Color Statistics36Figure 3-3. Primary Components of an 32-bit Color Image37Figure 3-4. Primary Components of a 64-bit Color Image37Comparing Colors38Learning Color Information38Specifying the Color Information to Learn39Figure 3-5. Template Color Information39Using the Entire Image39Figure 3-6. Using the Entire Image to Learn Color Distribution39Figure 3-7. Using a Single Region to Learn Color Distribution40Figure 3-8. Using Multiple Regions to Learn Color Distribution41Choosing a Color Representation Sensitivity41Ignoring Learned Colors42Chapter 4 Performing Particle Analysis43Figure 4-1. Steps for Performing Particle Analysis43Create a Binary Image43Improve the Binary Image44Removing Unwanted Particles45Separating Touching Particles45Improving Particle Shapes46Make Particle Measurements46Table 4-1. Measurement Types46Chapter 5 Performing Machine Vision Tasks53Figure 5-1. Steps to Performing Machine Vision54Locate Objects to Inspect54Using Edge Detection to Build a Coordinate Transformation55Figure 5-2. Coordinate Systems of a Reference Image and Inspection Image56Figure 5-3. Locating Coordinate System Axes with Two Search Areas57Using Pattern Matching to Build a Coordinate Transformation57Choosing a Method to Build the Coordinate Transformation59Figure 5-4. Building a Coordinate Transformation59Set Search Areas60Defining Regions Interactively60Table 5-1. ROI Selection Methods to Use with CWMachineVision Methods60Defining Regions Programmatically61Find Measurement Points61Finding Features Using Edge Detection61Finding Lines or Circles62Figure 5-5. Finding a Straight Feature62Figure 5-6. Finding a Circular Feature63Finding Edge Points Along One Search Contour63Finding Edge Points Along Multiple Search Contours64Finding Points Using Pattern Matching64Defining and Creating Effective Template Images65Figure 5-7. Symmetry65Figure 5-8. Feature Detail66Figure 5-9. Positional Information66Figure 5-10. Background Information67Training the Pattern Matching Algorithm67Defining a Search Area68Figure 5-11. Selecting a Search Area for Grayscale Pattern Matching69Setting Matching Parameters and Tolerances69Testing the Search Algorithm on Test Images70Using a Ranking Method to Verify Results71Finding Points Using Color Pattern Matching71Defining and Creating Effective Color Template Images72Training the Color Pattern Matching Algorithm73Defining a Search Area74Figure 5-12. Selecting a Search Area for Color Pattern Matching74Setting Matching Parameters and Tolerances75Testing the Search Algorithm on Test Images77Finding Points Using Color Location77Convert Pixel Coordinates to Real-World Coordinates78Make Measurements78Distance Measurements78Analytic Geometry Measurements79Instrument Reader Measurements80Identify Parts Under Inspection80Classifying Samples80Reading Characters81Reading Barcodes81Read 1D Barcodes81Read Data Matrix Barcode82Read PDF417 Barcode83Display Results83Chapter 6 Calibrating Images86Perspective and Nonlinear Distortion Calibration86Defining a Calibration Template87Figure 6-1. Defining a Calibration Grid87Defining a Reference Coordinate System88Figure 6-2. Axis Direction in the Image Plane88Figure 6-3. A Calibration Grid and an Image of the Grid89Figure 6-4. Defining a Coordinate System90Learning Calibration Information90Specifying Scaling Factors91Choosing a Region of Interest91Choosing a Learning Algorithm91Figure 6-5. Types of Image Distortion91Figure 6-6. Calibration ROIs92Using the Learning Score92Learning the Error Map93Learning the Correction Table93Setting the Scaling Mode93Calibration Invalidation94Simple Calibration94Figure 6-7. Defining a Simple Calibration95Save Calibration Information95Attach Calibration Information95Appendix A Technical Support and Professional Services97Glossary98Numbers98A-B98C100D-E101F-G102H103I104J-L106M-N108O109P110Q-R111S112T113V114Index115Numerics115A-C115D116E-I117K-N118O-R119S-T120U-Z121サイズ: 2.01MBページ数: 121Language: Englishマニュアルを開く