how to partition RGB image into 8 coarse partitions and find histogram for each partition
이전 댓글 표시
Hi Problem :I've to partition an RGB image into 8 coarse partitions and find histogram for each partition to identify the dominant color in it.
could some one please help me. My Contribution: I've partitioned the input image(256x256) into 8 blocks each uint8.
rgbImage = imresize(rgbImage, [256 256]);
[rows columns numberOfColorBands] = size(rgbImage);
blockSize = 32;
ca = mat2cell(rgbImage,blockSize*ones(1,size(rgbImage,1)/blockSize),blockSize*ones(1,size(rgbImage,2)/blockSize),3);
plotIndex = 1;
I need to find the histogram for each block and find the dominant color. Could someone please help me.
Malini
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Neighborhood and Block Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!