Code covered by the BSD License  

Highlights from
MVTec Halcon Wrapper

4.0

4.0 | 1 rating Rate this file 23 Downloads (last 30 days) File Size: 1.22 MB File ID: #46524

MVTec Halcon Wrapper

by

 

07 May 2014 (Updated )

MVTec Halcon function mex-wrapper

| Watch this File

File Information
Description

MVTec Halcon 11 is an image processing library used in machine vision applications.
At Focal.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.If you use Matlab 64-bits, install Halcon x64 and 64-bit c++ compiler.
When using Matlab 32-bits also install Halcon 32-bits.

3. 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

4. XLD's are currently not supported.

Required Products MATLAB
MATLAB release MATLAB 8.3 (R2014a)
Other requirements C++ compiler MVtec Halcon 11
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
07 Jul 2014 Seth

This is really great. It helps couple two very powerful codes and utilize some of the great features in Halcon. My two issues are:
1. Lack of examples/documentation on how to use these functions effectively in Matlab.
2. Lack of XLD support.

You can typically stumble through and figure out how to use these functions, but it is slow and can be non-obvious if you aren't intimately familiar with Halcon. For example - if a Halcon function returns a "region" - how do we best use that in Matlab space? Say we threshold an image (hDynThreshold) - how do I quickly display the results using imshow()? You can figure it out, it works - but it is not obvious at first.

Overall - very valuable toolbox and very glad this was provided on the file exchange. Some basic examples to help users understand things efficiently could go a long way.

07 Jul 2014 Seth  
30 May 2014 R.

Wont work with Halcon 10

07 May 2014 Shaan

HALCONCpp/HalconCpp.h is missing.

Updates
16 May 2014

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

16 May 2014

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

17 May 2014

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

17 May 2014

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

19 May 2014

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

28 May 2014

Added Help file generator

24 Jun 2014

Fixed Null Pointer issue

Contact us