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
0
votes
2 answers

Byte[r,c,c] to Halcon HObject/HImage to byte[]

I am using Zivid.NET, Halcon.NET and ML.NET together. Zivid provides me with a 3D byte array (row, column, channel), Halcon uses HImages/HObjects, ML.NET functionality expects a 1D byte array (same as File.ReadAllBytes()) So far I used a workaround…
Malinko
  • 124
  • 11
0
votes
0 answers

Encoding point cloud data to unsigned char* and decoding (Halcon-MongoDB)

i am writing a code in C++ that acquires data from a 2D or 3D sensor (for example Photoneo XL) and has the aim to save the image/point cloud in MongoDB through Gridfs(this requires to serialize the data in a buffer of unsigned char*) because data…
0
votes
1 answer

Could not modify HALCON-21.11-Progress

I will prompt this message when I uninstall Halcon and reinstall it Try: I manually delete the registry files, and then the installation still fails
Leemh
  • 1
0
votes
1 answer

Render RGB pointcloud together with surface match result

(HalconDotNET) I want to render an image from a visualized match result with a colored pointcloud. In the example program find_surface_model_with_edges_simple.hdev after running find_surface_model() you receive a pose, with this pose you can…
Malinko
  • 124
  • 11
0
votes
2 answers

HalconDotNet: Unable to check validity of license without license?

I wanted to perform a Halcon license check somewhere in my application before starting HalconDotNet functionalities. However the following code generates an exception for there is no valid license to use the function GetSystem() that is used to…
Malinko
  • 124
  • 11
0
votes
2 answers

Render pointcloud parts from the same perspective

When slicing a objectModel3D into horizontal layers using select_points_object_model_3d and rendering these layers using render_object_model_3d(), I noticed that smaller parts of the bigger pointcloud get centered and scaled up to fit the graphics…
Malinko
  • 124
  • 11
0
votes
1 answer

Why do some HalconDotNet procedures produce HTuple instead of preferred type?

One example is: HOperatorSet.RigidTransObjectModel3d() It expects HTuple but also accept objectModel3D as model input. The model output is HTuple, even tho it should (imo) be objectModel3D, as a result I cannot use the objectModel3D's…
Malinko
  • 124
  • 11
0
votes
1 answer

Halcon - Create hom_mat3D from data / Ajust existing hom_mat3D data

I am trying to create a Halcon homogeneous transformation matrix with data aquired from another process. I will be using it to generate a pose, which in turn will be used for rigid transformation. The most useful option for hom_mat3D creation I have…
Malinko
  • 124
  • 11
0
votes
1 answer

Halcon - outer 5 pixels of a image as a region

I have a image with a random shape. What I need to do is to get the outermost 5 pixels of the image as a region. How can this be done in halcon? what I did so far is this: threshold (ImageL, FullRegion, 0,255) …
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
0
votes
1 answer

Halcon - extract object from low contrast noisy image

I have this image: and would need to get the region of the crate. like this: I have not been able to get a clean selection so far. I tried thresholding the image, tried after adding some mult_image, add_image, but no luck. Any help on detecting…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
0
votes
0 answers

Halcon: Obtain how much is a mm in pixels after calibration

I've successfully calibrated my camera and I can get the dimensions of a XLD in world coordinates with ContourToWorldPlaneXld and then HeightWidthRatioXld. This returns me the measures of a contour extracted from a shape. Now I need to convert a…
erik7854
  • 150
  • 1
  • 16
0
votes
2 answers

Halcon: Cannot connect wth camera in C#

I started working on a project with Halcon and initially I used HDevelop 21.11 Progress version. Recently I imported the code to C# using MVTec.HalconDotNet NuGet package but I'm having issues when connecting to the camera with OpenFramegrabber,…
erik7854
  • 150
  • 1
  • 16
0
votes
1 answer

HDR stacking of images in halcon

I have multiple images that I have to merge to a single HDR image in Halcon. I've been looking online and in the manual, but was not able to find any HDR comand.. How can this be done in Halcon?
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
0
votes
1 answer

How can I remove duplicate points, And draw a diagram with X and Z axes in Halcon (MVTEC Software)?

I am doing a project where I need to draw a laser line image on a graph. I got the coordinates of the laser points. I am going to draw a two-dimensional graph in the Halcon (MVTEC software) using points Some points are duplicates and this prevents…
mohammad
  • 1
  • 3
0
votes
1 answer

Matrix to image conversion in HALCON

I have been trying to convert a matrix to an image in Halcon. So far I have only managed to do with set_grayval in a for loop through all pixels. Can someone suggest a better way to do it? Thank you!
ucablcu
  • 3
  • 1
1 2 3
8 9