0

Original Image:

Original Image

OpenCV Processed Image:

OpenCV Processed Image

The first Image is the original.

The second image is OpenCV's processed image.

I want to realize the effect in HALCON too.

Can someone give me advise on which method or HALCON operator to use?

Grant Miller
  • 27,532
  • 16
  • 147
  • 165

1 Answers1

3

According to Wikipedia (Image embossing) this can be achieved by a convolutional filter. In the example you provided it seems that the embossing direction is South-West.

In HALCON you can use the operator convol_image to calculate the correlation between an image and an arbitrary filter mask. The filter would be similar to this:

Embossing filter matrix

To apply such a filter matrix in HDevelop you can use the following line of code:

convol_image (OriginalImage, EmbossedImage, [3, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, -1], 0)
Kilian Hohm
  • 320
  • 1
  • 7