HALCON 背景滤除一例

目录 Content
[hide]

例子源自于QQ群

处理前

处理后

代码

mean_image(ImageRotate, ImageMean, 3, 3)
decompose3(ImageMean, R, G, B)
dots_image(B, DotImage, 3, 'dark', 1)
get_image_size(DotImage, Width, Height)
threshold(DotImage, Region, 20, 255)
region_to_bin(Region, BinImage,  0, 255, Width, Height)

实测

代码参数未做任何调整,与原作结果有差距,推断不是同一个图片源。

example

Leave a Reply

Your email address will not be published. Required fields are marked *