图片、图像二值化(二值图)

遍历像素,

  • 遍历所有像素,根据值的范围设置0、255,从而实现二值化

opencv 提供的方法

  • 全局固定阈值 (cvThreshold)

    • 方法参数详解:https://blog.csdn.net/soarnic/article/details/2980344
    • 使用:https://blog.csdn.net/qq_34784753/article/details/55804396
  • 局部自适应阈值 (adaptiveThreshold)

参考文章:

https://blog.csdn.net/FreeApe/article/details/50409862

你可能感兴趣的:(图片、图像二值化(二值图))