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
1
vote
2 answers

Halcon - 3D equivalent of affine_trans_contour_xld

I have a XLD contour that i need to convert from world plane to image plane.. but I can only find affine_trans_contour_xld, that accepts a 2D Mat, and not a 3D mat.. how can I transform the xld Contour from the world plane to the image…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

Halcon - extend region where it intersects with another region

Left image is my starting situation: red is a region, and black is a XLD rectangle. The right is what I would like to achive. I would need that wherever the Region touches the Rectangle, the region is stretched out by X pixel.. my approach would be…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

Halcon - Gradient brightness

I have a image that is taken with uneven lighting.. there is a Light obove and one below the camera, so as a result, the image is properly lit in the center (top to bottom) but quite dark left and right. Is there a way to apply a brightening filter…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

Halcon - Find Row coordinate of 2 points with smallest and biggest Col coordinates

I have a Region that can have any shape. (sample below) I would need to find the ROW coordinates of the two points pointed with an arrow. (the most left and most right pixel coordinates of the region.) I've managed to get the Col coordinates with…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

Halcon - Select subregion with highest Y value

I have a region that contains multiple smaller regions. After using connection and select_shape to clean it up i am left with one single region. It happens sometimes tough that 2 or 3 regions meet the criteria and are displayed. I need a way to…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
0 answers

Halcon - Generate new pose based on 2 poses

I have 2 Parallel poses with different origins and different X axis directions (Y is parallel): First pose is my ground plane. X is horizontal, Y is vertical, Z is depth. Second pose, is somewhere above the first pose floating in the room, with the…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

How to use Halcon HOperatorSet.SetDrawingObjectCallback

I had a hard time finding how to use HOperatorSet.SetDrawingObjectCallback(HTuple drawID, HTuple drawObjectEvent, HTuple callbackFunction) (Docu) in C#, specifically the part of the callback HTuple callbackFunction. Apart from a Chinese website…
Florian H.
  • 89
  • 10
1
vote
1 answer

how to differentiate between blue (circular like) and other (arbitrary oriented rectangular/polygon) type contours

In this image there are three contours. I want to filter out the blue contour which looks like a rounded elliptical shape, while others look like arbitrarily aligned polygons and its edges can also be not completely smooth. How can we differentiate…
Adnan
  • 13
  • 2
1
vote
1 answer

Halcon - initialize tuple of iconic variables

How can I initialize a empty tuple of iconic variables? I am trying to do this: concat_obj(AllStr, Str, AllStr) AllStr is not initialized, so it throws an exception..
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

Halcon - Variable iconic variable name

I have follwoing code: for i:=0 to num_stripes by 1 R := Row1 + 5*i gen_rectangle1(TransStripe, R,Column1,R+4, Column2) intersection(TransStripe, LabelSelcted, RegionIntersection) …
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

Halcon - Extract straight edge from XLD

I have a XLD edge, like the one in red in the sample picture below. I need to extract start/endpoint of straight lines that reppresent it. Hough lines sort of work for this, but the results are not really replicable. minor changes in the contour…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

Halcon - Vertical measure plane relative to the calibrated groundplane

I have a camera that is looking diagonally to a ground plane. this plane is calibrated. there is a object on this plane, that can be at any distance (within the field of view of the camera), but will always be rotated towards the camera.. (not at an…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
2 answers

Halcon - find edge position, draw line and lineintersection

I'm starting from scratch with Halcon, and I'm not able to solve a problem. I have a Object, need to extract edges from this object, draw a line along the borders and draw a point on the intersection of the lines. I've tried tresholding, edge, color…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

Halcon - Set image brightness/exposure

I'm trying few things in Halcon for the first time. But couldnt figure out, not even in the documentation, how to set the exposure for the image aquisition... my code so far is this, but my test environment is dark, and would like to brighten up the…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

Generate HALCON region from contour

I have a polygon, consisting of 2D points representing pixel coordinates, in an internal data structure. I need this polygon as an HALCON region (HRegion). The conversion is supposed to happen like that: HTuple hCols, hRows; for (auto n = 0; n <…
Matz
  • 583
  • 1
  • 6
  • 21
1
2
3
8 9