Histogram to image

조회 수: 1 (최근 30일)
M W
M W 2011년 12월 23일
Hi, I'm a Matlab newbie and I desperately need your help. I need to enhance image by performing operations on its histogram. But how can I apply that changes to the image? It's easy to extract histogram form the image but how to transform histogram back into image after performing e.g. histogram smoothing?

답변 (2개)

Image Analyst
Image Analyst 2011년 12월 24일
I suppose you could maybe use the intlut() function. But why don't you tell us what you want to do and we can tell you the best way to achieve it? You can upload your image to tinypic.com.

M W
M W 2011년 12월 24일
Thanks for the answer.
I need to implement a Generalized Histogram Equalization algorithm. The method is described in the following article (click to open/download a PDF file)
I'm stuck at the point where I have to remove the noise from histogram. I can do it e.g. with the medfilt1() method. It works fine for the histogram but what about the image? I need to change the image too. Is there any way to recreate the image based on the new histogram?
  댓글 수: 6
Image Analyst
Image Analyst 2011년 12월 25일
It may take you a while, as it would for me, but I think is something that you could handle.
M W
M W 2011년 12월 25일
Yea, I think I can do it. You provided a really good commentary.
I've spent some time looking through this code and I see that the desiredPixelsInEachBin vector may be the key.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by