How can I split the image into blocks and then extract the features from each block?
Afficher commentaires plus anciens
Hello
I extracts image features (invariant moment) using this code
[filename, pathname] = uigetfile({'*.*';'*.bmp';'*.jpg';'*.gif'}, 'Pick a Degraded Fingerprint Image File');
im = imread([pathname,filename]);
figure, imshow(im);title('Fingerprint Image');
n1=invmoments(im);
How can I split the image into blocks(every block like 32x32) and then extract the features from each block?
Réponse acceptée
Plus de réponses (1)
Yuvaraj Venkataswamy
le 14 Août 2018
if true
mat2cell(I,size(I,1)/32*ones(32,1), size(I,2)/32*ones(32,1), 3)
end
This will split an image into 32 x 32 blocks. Then you can extract image features from each blocks using for loop.
6 commentaires
Yuvaraj Venkataswamy
le 14 Août 2018
@wisam kh Try this,
mat2cell(I,size(I,1)/4*ones(4,1), size(I,2)/4*ones(4,1), 3)
wisam kh
le 14 Août 2018
Yuvaraj Venkataswamy
le 14 Août 2018
Check this,
https://in.mathworks.com/matlabcentral/answers/223978-how-to-divide-an-image-into-blocks
wisam kh
le 14 Août 2018
Yuvaraj Venkataswamy
le 14 Août 2018
You are welcome.
Catégories
En savoir plus sur Neighborhood and Block Processing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!