Halcon 例程学习之1 coherence_enhancing_diff

coherence_enhancing_diff

coherence_enhancing_diff

* This example program shows how coherence_enhancing_diff can be used
* to enhance a fingerprint image by joining disconnected parts of the
* fingerprint lines.
read_image (Image, 'fingerprint')
get_image_size (Image, Width, Height)
dev_close_window ()
dev_open_window (0, 0, Width * 2, Height * 2, 'black', WindowHandle)
dev_display (Image)
stop ()
* Image 是输入图像  ImageCED 是输出图像,0.5是sigma,平滑的尺度;4是rho,扩散系数;0.5是时间间隔;50是迭代次数
coherence_enhancing_diff (Image, ImageCED, 0.5, 4, 0.5, 50)
dev_display (ImageCED)

这里写图片描述
这里写图片描述

发布了38 篇原创文章 · 获赞 29 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/ruotianxia/article/details/80451290