opencv - 高斯自适应阈值

标签 opencv image-processing

在高斯自适应阈值中,阈值是根据图像中的局部区域计算的。高斯自适应阈值算法使用什么算法?

最佳答案

从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/

相关文章:

java - 从 org.bytedeco.javacv.Frame 转换为 matlab 图像

matlab - 从电泳凝胶图像测量加权平均长度

php - 在 linux/php 中将 RAW 照片转换为 JPEG

c++ - 用于生成行人检测 ROI 的图像调整大小与图像金字塔 - OpenCV

c++ - OpenCV 功能检测和匹配 - 绘图匹配段错误

python - OpenCV:从摄像头编写视频,奇怪的结果(Python 和 Mac)

python - 如何在 OpenCV 中获取轮廓检测的动态阈值

algorithm - 在图像中产生线失真

Python:使用 OpenCV 从左上到右下对项目进行排序

linux - 将已编译的 cmake 构建克隆到相同的硬件