how i can do sub-sampling for an image with factor 4
Afficher commentaires plus anciens
to perform sub-sampling using matlab
Réponse acceptée
Plus de réponses (1)
Wayne King
le 26 Fév 2013
Do you want to downsample along the row dimension, along the column dimension, or both?
X = randn(24,24);
% Along row only
Im = X(1:4:end,:);
% Along column dim only
Im = X(:,1:4:end);
% Along both
Im = X(1:4:end,1:4:end);
Keep in mind that the above gives only one "phase" of the downsampling. When downsampling by M, there are M such phases. To see an illustration of this for a 1-D signal, see
Catégories
En savoir plus sur Multirate Signal 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!