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

1 次查看(过去 30 天)
i want to find x axis and y axis values of an histograms in matlab.
  3 个评论
sweta arya
sweta arya 2016-1-9
i want to calculate entropy of histogram for that i need to find total number of pixels at given value of x-axis.

请先登录,再进行评论。

回答(2 个)

Star Strider
Star Strider 2016-1-8
That does not appear to be possible (at least in R2015b). I would use histcounts (or histc) and then do a bar plot.
  1 个评论
sweta arya
sweta arya 2016-1-9
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.

请先登录,再进行评论。


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

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by