Download HALCON/C++ User`s Manual
Transcript
Contents 1 Introducing HALCON/C++ 1.1 Additional Sources of Information . . . . . . . . . . . . . . . . . . . . . . . . 1.2 A First Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Basics of the HALCON/C++ Interface 2.1 Calling HALCON Operators . . . . . . . . . . . . . . 2.1.1 A Closer Look at Parameters . . . . . . . . . . 2.1.2 Calling Operators via Classes . . . . . . . . . 2.1.3 The Tuple Mode . . . . . . . . . . . . . . . . 2.2 Error Handling . . . . . . . . . . . . . . . . . . . . . 2.2.1 Object-Oriented Approach . . . . . . . . . . . 2.2.2 Procedural Approach . . . . . . . . . . . . . . 2.3 Memory Management . . . . . . . . . . . . . . . . . . 2.4 How to Combine Procedural and Object-Oriented Code 1 1 2 . . . . . . . . . 5 5 6 8 11 13 15 16 17 17 . . . . . . . . . . 19 19 19 26 33 33 34 34 36 37 41 4 Creating Applications With HALCON/C++ 4.1 Windows NT/2000/XP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 46 46 5 Typical Image Processing Problems 5.1 Thresholding an Image . . . . . 5.2 Edge Detection . . . . . . . . . 5.3 Dynamic Threshold . . . . . . . 5.4 Texture Transformation . . . . . 5.5 Eliminating Small Objects . . . 5.6 Selecting Oriented Objects . . . 5.7 Smoothing Contours . . . . . . 49 49 49 50 50 50 51 51 3 The HALCON Parameter Classes 3.1 Iconic Objects . . . . . . . . . . . . . . . . . . 3.1.1 Regions . . . . . . . . . . . . . . . . . 3.1.2 Images . . . . . . . . . . . . . . . . . 3.1.3 XLD Objects . . . . . . . . . . . . . . 3.1.4 Low-Level Iconic Objects . . . . . . . 3.2 Control Parameters . . . . . . . . . . . . . . . 3.2.1 The Basic Class for Control Parameters 3.2.2 Tuples . . . . . . . . . . . . . . . . . . 3.2.3 Classes Encapsulating Handles . . . . . 3.3 Auxiliary Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .