MVTec Halcon Wrapper

版本 1.8.0.0 (5.1 MB) 作者: Dirk-Jan Kroon
MVTec Halcon function mex-wrapper
1.1K 次下载
更新时间 2017/1/31

查看许可证

MVTec Halcon (12) is an image processing library used in machine vision applications.
At Decom.nl we use both Halcon and Matlab together. Therefor we wrapped all Halcon operators into Matlab Mex-files (c++ code). By compiling the code (compile_cpp_code.m) you can use the Halcon operators in Matlab.
Example,
I = transpose(imread('lena.tif'));
Imedian = hMedianImage (I, 'circle', 3, 'continued');
figure, imshow(transpose(Imedian.image))
Note,
1. To use the software install Halcon Developer version. A version including temporary license can be obtained at mvtec.com
2. Please note, this wrapper is also compatible with Halcon 11, Halcon 13 ... but in that case first run "generate_cpp_code.m" followed by "generate_help_files.m" followed by "compile_cpp_code.m")

3.If you use Matlab 64-bits, install Halcon x64 and 64-bit c++ compiler.
When using Matlab 32-bits also install Halcon 32-bits.

4. Note image-data is stored row-wise in Halcon and column-wise in Matlab. Thus transpose or permute(I,[2 1 3]) an image from Matlab before using in Halcon and the other-way around

5. XLD's are currently not supported.

6. Halcon is sensitive to input datatypes, thus don't use hFunction("100") or hFunction(100), when Halcon expect an integer, then use hFunction(int32(100)). A mixed tuple equals a cell array like {"true", "red",int32(123),3.14}

引用格式

Dirk-Jan Kroon (2024). MVTec Halcon Wrapper (https://www.mathworks.com/matlabcentral/fileexchange/46524-mvtec-halcon-wrapper), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 GPU Computing 的更多信息

Community Treasure Hunt

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

Start Hunting!

版本 已发布 发行说明
1.8.0.0

Upgrade to Halcon 12... Also added Excpection catching and additional error information

1.7.0.0

Fixed Null Pointer issue

1.6.0.0

Added Help file generator

1.5.0.0

Halcon Exception as Matlab error.
Functions without output now first HObject input is assumed to be also the output. (Such as SetGrayVal)

1.4.0.0

Halcon Exception as Matlab error.
Functions without output now first HObject input is assumed to be also the output. (Such as SetGrayVal)

1.3.0.0

Halcon Exception as Matlab error.
Functions without output now first HObject input is assumed to be also the output. (Such as SetGrayVal)

1.2.0.0

Now wraps all Halcon Functions, only XLD's are not working yet.

1.1.0.0

Now wraps all Halcon Functions, only XLD's are not working yet.

1.0.0.0