在高斯自适应阈值中,阈值是根据图像中的局部区域计算的。高斯自适应阈值算法使用什么算法?
最佳答案
从OpenCV手册中:
Adaptive Thresholding
void cv::adaptiveThreshold ( InputArray src,
OutputArray dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C
)
where T(x,y) is a threshold calculated individually for each pixel (see adaptiveMethod parameter)....
adaptiveMethod Adaptive thresholding algorithm to use, see cv::AdaptiveThresholdTypes. The BORDER_REPLICATE | BORDER_ISOLATED is used to process boundaries.
the threshold value T(x,y) is a weighted sum (cross-correlation with a Gaussian window) of the blockSize×blockSize neighborhood of (x,y) minus C . The default sigma (standard deviation) is used for the specified blockSize . See cv::getGaussianKernel
有关更好的信息,请阅读源代码:
https://github.com/opencv/opencv/blob/master/modules/imgproc/src/thresh.cpp
关于opencv - 高斯自适应阈值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48953922/