[快速阅读七] Halcon里emphasize函数相关资料.
  23q59msja7dS 2024年08月06日 27 0

  时不时有人问我我的SSE优化Demo里emphasize(边缘强调)的原理是啥,有没有写博客,其实不是我不愿意写博客,而是那个东西太过于简单,我不想写博客。但是耐不住问的人多了,我就干脆复制点资料放在博客里吧,省的每次我还要去找点资料复制给人家。

   这个东西其实是Halcon里的一个算子,我也是直接借用了他的一个英文名字并翻译的,在Halcon的帮助文档里,其说法如下所示:

emphasize (Operator)
Name
emphasize — Enhance contrast of the image.
Signature
emphasize(Image : ImageEmphasize : MaskWidth, MaskHeight, Factor : )
Description
The operator emphasize emphasizes high frequency areas of the image (edges and corners). The resulting images appears sharper.
First the procedure carries out a filtering with the low pass (mean_image). The resulting gray values (res) are calculated from the obtained gray values (mean) and the original gray values (orig) as follows:

                res := round((orig - mean) * Factor) + orig
 
Factor serves as measurement of the increase in contrast. The division frequency is determined via the size of the filter matrix: The larger the matrix, the lower the disivion frequency.
As an edge treatment the gray values are mirrored at the edges of the image. Overflow and/or underflow of gray values is clipped.

  这东西就是一个最为简单的锐化算子,依赖于模糊,由模糊数据和原始数据的差值得到边缘信息,然后再根据用户输入的系数对边缘信息进行放大,加到原始信息中,从而起到增强边缘或者角点的作用。

  注意,溢出的值需要直接Clip。

  Halcon里是用的均值模糊,实际也可以用高斯模糊或者其他类型的模糊,这个东西的效果和半径以及增强的系数有关。

          

  

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2024年08月06日 0

暂无评论

推荐阅读
23q59msja7dS