image histogram for color constancy

8 vues (au cours des 30 derniers jours)
Fathima Haleema
Fathima Haleema le 16 Fév 2013
Dear Sir
If i use the imhist() for my subploting imageit will not display the histogram in my color constancy program at the same time i want to display the error ration for orginal image and gray image
Please give suggestion for me it was very helpful to me
with regards Fathima

Réponse acceptée

Image Analyst
Image Analyst le 16 Fév 2013
We have no knowledge of your color constancy program so we can't say why it will not display. In a regular MATLAB program with an axes, you'd do something like this:
[pixelCounts grayLevels] = imhist(grayImage, 256);
bar(grayLevels, pixelCounts, 'BarWidth', 1.0);
but that's for a gray scale image, not a color image. I also don't know what an "error ration" is. Finally, explain how you got the gray level image from the "original" image.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by