本文介绍了在matlab中的图像矩阵上应用新的均衡直方图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设基于我的。

这个帮助我的网页的具体部分如下图所示:



我为实现此目的而编写的代码算法在

注意文件HistogramEqualization中的第22行到第24行为灰度图像实现上述算法。并且RGB的代码是相同的,除了它应该针对每个颜色通道重复。


Suppose that based on my my previous questionI have equalized the histogram of an image now the question is how to apply this new equalized histogram on the image?
I mean what is the algorithm to get the new image from the new equalized histogram?
I have seen a code about this in the net.
It is evident that the last for loops, shown in this photo, are for applying the equalized histogram on the image matrix.

But I don't understand the algorithm used.
Again note that it's a college assignment and I'm not permitted to use built-in functions available in the image processing toolbox.

解决方案

Well I found the algorithm for applying the new equalized histogram on the image matrix here.
The specific part of this web page that helped me is shown in this picture:

And the codes that I wrote for implementing this algorithm are in this link.
Note that lines 22 to 24 in the file "HistogramEqualization" implement the algorithm above for a gray scale image. And the code for an RGB one is the same except that it should be repeated for each color channel.

这篇关于在matlab中的图像矩阵上应用新的均衡直方图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 04:02