i want to find x axis and y axis values of an histograms in matlab.

1 visualizzazione (ultimi 30 giorni)
i want to find x axis and y axis values of an histograms in matlab.
  3 Commenti
sweta arya
sweta arya il 9 Gen 2016
i want to calculate entropy of histogram for that i need to find total number of pixels at given value of x-axis.

Accedi per commentare.

Risposte (2)

Star Strider
Star Strider il 8 Gen 2016
That does not appear to be possible (at least in R2015b). I would use histcounts (or histc) and then do a bar plot.
  1 Commento
sweta arya
sweta arya il 9 Gen 2016
i did this too,but i need to find total no of pixels at particular value of x-axis,so that i can calculate entropy from histogram using programming rather than manually.

Accedi per commentare.


Image Analyst
Image Analyst il 9 Gen 2016
If you want the entropy, why not just simply use the entropy function
theEntropy = entropy(grayImage);

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by