• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
.
8
0
Building Vision for Business
MVTec Software GmbH
Solution Guide II-A
Image Acquisition
Overview

Obviously, the acquisition of images is a task to be solved in all machine vision applications. Unfortu- nately, this task mainly consists of interacting with special, non-standardized hardware in form of image acquisition devices, i.e., cameras or frame grabber boards. To let you concentrate on the actual machine vision problem, HALCON already provides interfaces performing this interaction for a large number of image acquisition devices (seesection 1 on page1).

Within your HALCON application, the task of image acquisition is thus reduced to a few lines of code, i.e., a few operator calls, as can be seen insection 2 on page2. What\u2019s more, this simplicity is not achieved at the cost of limiting the available functionality: Using HALCON, you can acquire images from various con\ufb01gurations of frame grabbers and cameras (seesection 3 on page4) in different timing modes (seesection 5 on page14).

Unless speci\ufb01ed otherwise, the example programs can be found in the subdirectoryim-
age_acquisitionof the directory %HALCONROOT%\examples\solution_guide. Note that most

programs are precon\ufb01gured to work with a certain HALCON acquisition interface; in this case, the name of the program contains the name of the interface. To use the program with another image acquisition device, please adapt the parts which open the connection to the device. More example programs for the different HALCON acquisition interfaces can be found in the subdirectoryhde-

velop\Image\Acquisitionof the directory %HALCONROOT%\examples.

Please refer to the Programmer\u2019s Guide,chapter 7 on page61 andchapter 18 on page141, for information about how to compile and link the C++ and C example programs; among other things, they describe how to use the example UNIX make\ufb01les which can be found in the subdirectoriesc andcpp of the directory

%HALCONROOT%\examples. Under Windows, you can use Visual Studio workspaces containing the
examples, which can be found in the subdirectorywin parallel to the source \ufb01les.

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior written permission of the publisher.

Edition 1
June 2002
(HALCON 6.1)
Edition 2
December 2003
(HALCON 7.0)
Edition 3
June 2007
(HALCON 8.0)
Edition 3a
April 2008
(HALCON 8.0.2)
Copyrightc
\ue0002002-2008 by MVTec Software GmbH, M\u00fcnchen, Germany
MVTec Software GmbH
Microsoft, Windows, Windows NT, Windows 2000, Windows XP, Visual Studio, and Visual Basic are either trade-
marks or registered trademarks of Microsoft Corporation.
Linux is a trademark of Linus Torvalds.
All other nationally and internationally recognized trademarks and tradenames are hereby recognized.
More information about HALCON can be found at:
http://www.halcon.com/
Contents
1 The Philosophy Behind the HALCON Acquisition Interfaces
1
2 A First Example
2
3 Connecting to Your Image Acquisition Device
4
3.1 Opening a Connection to a Speci\ufb01ed Con\ufb01guration. . . . . . . . . . . . . . . . . . . .
4
3.2 Connecting to Multiple Boards and Cameras. . . . . . . . . . . . . . . . . . . . . . . .
5
3.3 Requesting Information About the Image Acquisition Interface. . . . . . . . . . . . . .
8
4 Con\ufb01guring the Acquisition
10

4.1 GeneralParameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 4.2 SpecialParameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 4.3 Fixed vs. Dynamic Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13

5 The Various Modes of Grabbing Images
14

5.1 Real-Time Image Acquisition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 5.2 Using an External Trigger. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 5.3 Acquiring Images From Multiple Cameras. . . . . . . . . . . . . . . . . . . . . . . . .26

6 Miscellaneous
27

6.1 Acquiring Images From Unsupported Image Acquisition Devices. . . . . . . . . . . . .27 6.2 ErrorHandling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 6.3 Line Scan Cameras. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33

A HALCONImages
36

A.1 The Philosophy of HALCON Images. . . . . . . . . . . . . . . . . . . . . . . . . . . .36 A.2 Image Tuples (Arrays). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 A.3 HALCON Operators for Handling Images. . . . . . . . . . . . . . . . . . . . . . . . .37

B Parameters Describing the Image
39

B.1 ImageSize. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 B.2 Frames vs. Fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40 B.3 ImageData. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43

C ObjectAppearance
45
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...