Contrast Stretch and Normalization

版本 1.0.0.0 (2.2 KB) 作者: Sergei Koptenko
Stretches contrast on the image and normalize image from 0 to 1
7.5K 次下载
更新时间 2006/6/16

查看许可证

Stretches contrast on the image and normalize image from 0 to 1. The main difference of this function to the standard stretching functions is that standard function finds global minimum and maximum on the image, then uses some low and high threshold values to normalize image (values below LowTHR are equated to LowTHR and values above HighTHR are equated to HighTHR). This function uses threshold values that are NEXT to miminum and maximum. Thus, we can exclude image background (which is normally zero) and find minimum value on the image itself. Same consideration goes to high thr. We exclude first global maximum because, if its a spike, we have better chance with the next value, and if it is not a spike, normally, next value is quite close to max (assuming smooth image), so our error is small. If image is uniform, (all pixels have the same value), for instance zero, function returns the input array

引用格式

Sergei Koptenko (2024). Contrast Stretch and Normalization (https://www.mathworks.com/matlabcentral/fileexchange/11429-contrast-stretch-and-normalization), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
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