How to find the corresponding edges of the minimun value of an histogram ?
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I've an histogram plot of an image and I want to find the corresponding edges of the minimun value of this histogram. Any idea please ?
Here is my histogram. The histogram minimum value is 1335 and the edge I want to extract are 1.5 and 2.5.
Thanks in advance.
0 个评论
采纳的回答
Image Analyst
2018-8-18
Try this:
r = randi(5, 40)
histObj = histogram(r)
[minCount, indexOfMin] = min(histObj.Values)
edgesOfMin = histObj.BinEdges([indexOfMin, indexOfMin+1])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!