Need to do Down Sampling

Hello ....
I want help in deleting odd rows and coloumns from an image and at the same time even rows and even coloumns from an image.

1 comentario

Guillaume
Guillaume el 29 de Abr. de 2015
Your question is not clear. If you delete odd and even rows at the same time, then you're left with nothing.

Iniciar sesión para comentar.

Respuestas (1)

Guillaume
Guillaume el 29 de Abr. de 2015

0 votos

This is very basic matrix indexing. To delete odd rows:
m(1:2:end, :) = []
To delete even columns:
m(:, 2:2:end) = []
Note that you can't do both at once. If you want to delete both odd rows and columns, you have to do it in two steps:
m(1:2:end, :) = []; %delete odd rows
m(:, 1:2:end) = []; %delete odd columns

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

JAM
el 29 de Abr. de 2015

Respondida:

el 29 de Abr. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by