how to partition RGB image into 8 coarse partitions and find histogram for each partition
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Neighborhood and Block Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!