There are several example programs in the HALCON/C distribution
(%HALCONEXAMPLES%\c\source\). To experiment
with these examples, we recommend creating a private copy in your working directory.
- example1.c
- Reads an image and demonstrates several graphics operators
- example2.c
- Introduces several image processing operators
- example3.c
- Shows the usage of the tuple mode
- example4.c
- Shows more (basic) image processing operators like the sobel filter for edge
detection, region growing, thresholding, histograms, the skeleton operator,
and the usage of different color lookup tables
- example5.c
- Describes the HALCON messages and error handling
- example6.c
- Demonstrates the generic calling interface for the tuple mode
(T_call_halcon_by_id)
- example7.c
- Describes the handling of RGB images
- example8.c
- Demonstrates the creation of an image from user memory
- example_extern8.c
- Demonstrates the creation of an image from user memory. In contrast
to example8.c, the memory is not copied but pointed to.
- example_multithreaded1.c
- This special case demonstrates the use of HALCON in a multithreaded application. Please
note that it does not make sense to run the example on a single-processor or single-core
computer.