我知道自适应阈值函数及其参数如下:
cv2.adaptiveThreshold(src, maxValue, adaptiveMethod, thresholdType, blockSize, C)
我在文档中理解它说:
C – Constant subtracted from the mean or weighted mean (see the details below).
Normally, it is positive but may be zero or negative as well.
我模糊地认为这个 C 是确定在哪里设置相对于邻域均值的阈值。我的问题是:为什么不直接使用平均值?为什么要减去常数?这个减法运算在数学上代表什么?谁能简要解释一下或指导我在哪里可以找到相关材料以进行更深入的研究?谢谢!