how to take the average of more than two histograms
조회 수: 3 (최근 30일)
이전 댓글 표시
I have calculated 8 histograms using hist function. But I want to take the average of these histograms. Is it possible?. Please help me to find it.
댓글 수: 0
답변 (1개)
hawkar kheder
2019년 1월 5일
Hi, I give you an example that is the average histogram for 3 planes (R,G,B) of an image (I), You can change the histogram for multiple images as you need.
I=imread("filename");
r = I(:,:,1); g = I(:,:,2); b = I(:,:,3);
[counts1,nb] = imhist(r);
[counts2,nb] = imhist(g);
[counts3,nb] = imhist(b);
Average_counts = round(mean([counts1(:), counts2(:), counts3(:)], 2));
댓글 수: 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!