can we change the intensity value of the histogram??

조회 수: 1 (최근 30일)
user06
user06 2015년 7월 2일
댓글: Image Analyst 2015년 7월 5일
suppose we ha histogram. on a particular x value i want to change the y value . can it be possible ? if yes then tell me ..

채택된 답변

Image Analyst
Image Analyst 2015년 7월 3일
Yes. To change the counts array, just change it. For example to change the number of counts in bin #101 (which holds counts for gray level 100), and to get rid of big spikes at the ends, do this:
[pixelCounts, grayLevels] = imhist(grayImage);
pixelCounts(101) = 1234; % Change count to 1234.
% Suppress big spikes at 0 and 255:
pixelCounts(1) = 0;
pixelCounts(256) = 0;
  댓글 수: 4
user06
user06 2015년 7월 5일
Image Analyst actually i have made changes in the histogram of an image, and want to know that how much distortion is introduced into the image, for that i have to generate the image back from the histogram. is there any way to do that?
Image Analyst
Image Analyst 2015년 7월 5일
Like I said above: No.

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

추가 답변 (0개)

카테고리

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