Filter löschen
Filter löschen

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

3 Ansichten (letzte 30 Tage)
sweta arya
sweta arya am 8 Jan. 2016
Beantwortet: Image Analyst am 9 Jan. 2016
i want to find x axis and y axis values of an histograms in matlab.
  3 Kommentare
sweta arya
sweta arya am 9 Jan. 2016
i want to calculate entropy of histogram for that i need to find total number of pixels at given value of x-axis.
Walter Roberson
Walter Roberson am 9 Jan. 2016
What form is your histogram in? How did you create it?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Star Strider
Star Strider am 8 Jan. 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 Kommentar
sweta arya
sweta arya am 9 Jan. 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.

Melden Sie sich an, um zu kommentieren.


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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by