Resizing image in pixels
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Is there anyway to resize an image in terms of pixels? say, i want to resize my picture with no change of proportion to 160x160 pixels?
help is very much appreciated!
0 comentarios
Respuestas (1)
Guillaume
el 26 de Feb. de 2015
Editada: Guillaume
el 26 de Feb. de 2015
resizedimage = imresize(originalimage, [160 160]);
2 comentarios
Guillaume
el 26 de Feb. de 2015
Then post the code you're using, as it works fine for me:
originalimage = randi([0 255], 1000, 1000);
resizedimage = imresize(originalimage, [160 160]);
whos resizedimage
returns:
Name Size Bytes Class Attributes
resizedimage 160x160 204800 double
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!