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
조회 수: 6 (최근 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!