I have a RGB image which i converted into HSV color model. Then I have extracted the V- component. I draw simple histogram of this V-component. Now i wanted to divide this created histogram in such 8 part where each partition should have the same ent
1 次查看(过去 30 天)
显示 更早的评论
I have a RGB image which i converted into HSV color model. Then I have extracted the V- component. I draw simple histogram of this V-component. Now i wanted to divide this created histogram in such 8 part where each partition should have the same entropy. Or if not 8 then number of partition must be same.
2 个评论
Im_possible_woman
2018-4-15
Hello @sumit kumar, could you please share the codes of RGB image which is converted into HSV color model. Then have extracted the V- component? I really hope that you can help me to share the codes and respond me.
采纳的回答
Image Analyst
2016-11-15
Compute the histogram. Then compute the entropy in each bin: sum(p*log(p)). Then compute the CDF of the entropy array using cumsum(). Then split it at the 1/8, 2/8, 3/8, etc. points to find out what gray levels give you the eight part splitting that you seek.
更多回答(1 个)
Walter Roberson
2016-11-15
3 个评论
Walter Roberson
2016-11-15
Though I am not sure what you mean by "have the same entropy" with respect to a portion of a histogram?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!