Questions tagged [halcon]

Halcon (proprietary notation: HALCON) is a proprietary library of algorithms for image processing and machine vision. The software is developed by the Munich company MVTec.

Halcon (proprietary notation: HALCON) is a proprietary library of algorithms for image processing and machine vision. The software is developed by the Munich company MVTec.

The Halcon library provides about 2000 different operators and provides interfaces to many cameras and frame grabbers. It is designed for operation on multicore systems and for GPGPU.

Halcon is used predominantly in industrial and medical applications. Similar proprietary libraries include the Cognex Vision Library and the Matrox Imaging Library.

The IDE uses the proprietary HDevelop. Otherwise, there is also an extension for Microsoft Visual Studio.

128 questions
5
votes
3 answers

HALCON to OpenCV Distortion Coefficients Convertion

I have got a calibrated multi-camera system. Both the internal (focal length, distortion, etc) and external (poses) camera parameters have been estimated using HALCON-based program. Now, the goal is to write a C++ program, to read the camera…
N.R.
  • 103
  • 1
  • 7
3
votes
2 answers

Memory cannot be released when using Halcon algorithm find_shape_model in C#

There's a problem when I use Halcon operator find_model_shape in C#. The memory occupied by this operator cannot be released even if using clear_shape_model as Halcon says. It seems like the memory occupied by find_shape_model is larger when the…
2
votes
0 answers

C++/CLI & Halcon: Distorted Image while converting HImage to Bitmap

I'm currently working on a vision-based system using Halcon. After successful processing, I'd like the cropped out gray value images in HImage-Format to be converted into Bitmaps. The function I have (in "managed" area) kind of achieves that but the…
Maestro7
  • 21
  • 2
2
votes
0 answers

Halcon - gen_gabor does not output the power spectrum of Gabor kernel

I need to compute Gabor filter of a given image using Halcon library. Unfortunately, I get different results when manally compute FFT of Gabor kernel or use the function gen_gabor() that is claimed to compute the Gabor and Hilbert filters in…
Andrey
  • 21
  • 2
2
votes
2 answers

Get absolute value derivative of image with python or Halcon

I think what I would get from 1 in the picture with gaussian filter is 2. I want to get number 3. I want to get the derivate but just the absolute amount. I basically want to filter out the gradient of the big triangle and just get irregularities…
2
votes
1 answer

Init HalconWindow/HSmartWindowControlWPF in Background in C#

Is there any way to initialize a HalconWindow or a HSmartWindowControlWPF in C#? I am having multiple HSmartWindowControlWPFs in a TabView but only those that were visible before are updated. So if I am trying to put an HImage in all HalconWindows,…
Monocito
  • 117
  • 1
  • 12
2
votes
3 answers

Convert grayscale HImage (MVtec Halcon library) to c# bitmap

Is there an easy way to convert the grayscale Halcon/MVtec Himage object to a c# bitmap? Sample code exists here (mvtec documentation) for a color image: HTuple type, width, height; HImage patras = new HImage("patras"); HImage interleaved =…
shelbypereira
  • 2,097
  • 3
  • 27
  • 50
2
votes
1 answer

Opening HDevelop examples from internal function description

We have an extensive internal Halcon library, which is used by more and more people. Now we have arrived at the point, where it would be very useful if we could directly access HDevelop examples written specifically for this function as it is…
Vladimir Perković
  • 1,351
  • 3
  • 12
  • 30
2
votes
1 answer

Fix gap of 3D model in HALCON

I'm using HALCON to do 3D application, currently, I use xyz_to_object_model_3d to create 3D model, and the Z image is from 3D sensor. the item in reality looks like: Modle picture1 but the 3D model in HALCON looks like: 3D model in HALCON there…
Tommy
  • 31
  • 1
1
vote
2 answers

Multithreading computationally heavy tasks in HalconDotNet

For a project with a very large database I am using the following two procedures thousands of times in a loop: select_points_object_model_3d() render_object_model_3d() This takes hours and hours for every test as it is using only 1/16 cores. Now I…
Malinko
  • 124
  • 11
1
vote
1 answer

Extract grid data from noisy image in Halcon

I am trying to get clean grid data from this image (don't mind the tilt, it is incidental). This means no noisy dots and a uniform grid representing the situation. I am doing fairly well using morphology, doing: closing_rectangle1…
Malinko
  • 124
  • 11
1
vote
1 answer

How to merge regions from region array in Halcon?

I am trying to iterate all rectangle regions in the image below and check which ones overlap with other regions. The overlapping regions need to be merged with eachother. I think my problem lies with iconic array initialisation and I had a look at a…
Malinko
  • 124
  • 11
1
vote
1 answer

Calculate turning Points for Contours in C#

I am find out the Image Coutours by Halcon,then I will determine turning Points in Contours (x,y). The following figures Contour Image I reference the calculate turning points / pivot points in trajectory (path) Use Ramer-Douglas-Peucker(RDP)…
Johnson
  • 11
  • 1
1
vote
2 answers

Halcon/HDevelop socket send generic image data

Halcon Progress 20 provides sockets for different protocols (HALCON, UDP, TCP) and the send_data(Socket, Format, Data, To) procedure to send arbitrary data using generic socket communication. How can this procedure be used to send an image from…
evolved
  • 1,850
  • 19
  • 40
1
vote
2 answers

Halcon - verify if region is empty

This row: intersection(CurrentZplaneTransRegion, Unshifted, CurrentRegion) sometimes returns a empty region. I need to catch this situation. How can I verify if the currentRegion is empty?
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
2 3
8 9