例程源码
* 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 ()
coherence_enhancing_diff (Image, ImageCED, 0.5, 4, 0.5, 50)
dev_display (ImageCED)
*这个示例程序展示了如何使用coherence_enhancing_diff
*通过连接指纹的断开部分来增强指纹图像
*指纹线。
原图 运行后
相干增强扩散(coherence_enhancing_diff)
执行图像的连贯性增强扩散。
图像(Image) --- 输入对象(input_object)
输入图像。
结果(ImageCED) --- 输出对象(output_object)
输出图像。
西格玛(Sigma) --- 输入元组(input_control)
导数算子的光滑。
扩散平滑系数(Rho) --- 输入元组(input_control)
扩散系数平滑。
时间步距(Theta) --- 输入元组(input_control)
时间步。
迭代次数(Iterations) --- 输入元组(input_control)
迭代次数。