Similar to the standard HALCON system a programmer has to provide (at least)
two libraries (DLLs in Windows, shared
libraries or dynamic libraries in Linux or macOS
environments, respectively) in order to extend HALCON by a
new operator package (see chapter “Creating a New HALCON Package”).
- A library containing the new operators (written in C). Most of this manual is
about how to write such operators based on internal data structures /
procedures of the HALCON system. This library has the same name as the
package itself, in our example halconuser.
- Libraries encapsulating the generated interface code (for C, C++,
.NET). These
libraries (i.e., the operator library and one of the interface libraries)
have to be used in new applications in order to
provide the interface of
the new operators to the host language of your choice. Most of the work
concerning these libraries is done by the HALCON compiler hcomp,
see section “The HALCON Compiler hcomp” for details. In the example package these libraries
are called halconuserc, halconusercpp, and
halconuserdotnet.
The names of all these libraries are derived from the name of the package
itself: A package package contains the libraries2) package, packagec,
packagecpp, and packagedotnet.
2) This is true
for the Windows version. For Linux/macOS systems the prefix lib is
added
to the libraries resulting in libpackage, libpackagec, and
libpackagecpp.
|