matchHistograms

版本 1.0.0.1 (2.1 KB) 作者: Brett Shoelson
Operates on two images (grayscale, binary, or color), returning a histogram-matched version
2.4K 次下载
更新时间 2016/9/1

查看许可证

[imOut, hist] = matchHistograms(img1,img2,nbins)
Matches the histogram of image1 to that of image 2, using the user-specified number of bins. Returns the histogram-matched image, as well as its histogram. Operates on two grayscale, two binary, or two color images.

INPUTS:
img1: the image to modify
img2: the image whose histogram is to be matched
nbins: number of histogram bins

OUTPUTS:
imgOut: the histogram-matched image
hist: the histogram of the output image

USAGE: this function works on two grayscale, two binary, or two color images. For color images, the number of color planes must match (i.e., size(img1,3) must match size(img2,3).

引用格式

Brett Shoelson (2024). matchHistograms (https://www.mathworks.com/matlabcentral/fileexchange/27396-matchhistograms), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

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

checking license.txt file to see if says MathWorks-sf

1.0.0.1

Updated license

1.0.0.0