Meanthresh local image thresholding

版本 1.0.0.0 (4.3 KB) 作者: Jan Motl
Meanthresh performs a simple local image thresholding.
1.2K 次下载
更新时间 2013/5/17

查看许可证

The algorithm calculates the mean value in a window and if the pixel's intensity is above the mean the pixel is set to white colour, otherwise the pixel is set to black colour. To increase the resistance to noise the threshold value can be shifted by a constant c. The pseudocode:

if (pixel >= mean-c)
pixel = 1;
else
pixel = 0;
end

引用格式

Jan Motl (2024). Meanthresh local image thresholding (https://www.mathworks.com/matlabcentral/fileexchange/41787-meanthresh-local-image-thresholding), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0