image histogram for color constancy
1 view (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
Image Analyst
on 16 Feb 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.
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!