how to partition RGB image into 8 coarse partitions and find histogram for each partition
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Neighborhood and Block Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!