What is meant by probability distribution function of an image

 Accepted Answer

Try this:
[pixelCount grayLevels] = imhist(grayImage);
special considerations must be taken for floating point images.

4 Comments

what if the image is coloured?
What do you want to know about it? The histograms for each color channel independently? If so, see my attached demo.
How can we define the probability distribution of a colored image?
I'll have to repeat my last comment.
The histograms of each channel separately will give you detailed information. Hopefully it's what you want, but I don't know because you're not answering my question but instead asking another question.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!