how can i split an image into 25 blocks using for loop?
Afficher commentaires plus anciens
i have a lot of images i need to split each image into blocks then i have to convert each block into one vector (now i have 25 vectors) i need to concatenate these vectors in one row vector finally i want to obtain an array each row in this array is a large vector(25 concatenated vectors) of one image how can i do this thanks in advance
Réponse acceptée
Plus de réponses (2)
Image Analyst
le 5 Jan 2015
See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F For each block, you can turn it from a 2D subimage into a 1D vector with
vector1d = image2d(:);
Matt J
le 5 Jan 2015
blocks=mat2tiles(YourImage,25,25);
Catégories
En savoir plus sur Computer Vision with Simulink 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!