image thumbnail

MVTec Halcon wrapper with XLD serialization

version 1.0.6 (11.3 KB) by T. Dunker
Matlab wrapper for MVTec Halcon functions with XLD serialization

44 Downloads

Updated 03 Dec 2021

From GitHub

View license on GitHub

MatlabHalcon

Matlab wrapper for MVTec Halcon functions with XLD serialization.

A modification of the MVTec Halcon wrapper by Dirk-Jan Kroon permitting to use functions with HObject of type XLD as input or return value.

This MVTec Halcon wrapper can pass HObjects of type XLD between functions. The XLD is not mapped to a Matlab structure. It is simply serialized to a byte stream.

The build process is packed into the function build(). Executing build() will create a new folder "../halcon-XXX-YYY-ZZZ/+halcon", where XXX stands for the Halcon version, YYY for the matlab('arch') and ZZZ for the short name of the mex C++ compiler.

After adding the "halcon-XXX-YYY-ZZZ" folder to the matlab path one can e.g. use the model finding functions

xld = halcon.EdgesSubPix(templateImage, ...);
modelId = halcon.CreateScaledShapeModelXld(xld, ...);
[rows, cols, angles, scales, scores] = halcon.FindScaledShapeModel(searchImage, modelId, ...);

There is some real code to try in example.m.

View MVTec Halcon wrapper with XLD serialization on File Exchange

Cite As

T. Dunker (2022). MVTec Halcon wrapper with XLD serialization (https://github.com/T-Dunker/MatlabHalcon/releases/tag/v1.0.6), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.