Down Sample Image by Deleting Alternating Rows & Columns
Mostrar comentarios más antiguos
I am trying to down sample an image to 1/4 and 1/16 its original size, and the instructions are to "use simple decimation to remove every other row and column to do so".
I have been reading through the MATLAB documentation for imresize, downsample, and decimate, as well as various threads here and on other sites, and I cannot seem to figure out how to implement this task?
I = imread('filename');
J = downsample(I,4);
which gives me the correct resize vertically but doesn't change the horizontal dimension. How do I apply this downsample to both rows AND columns?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!