How to change the image resolution?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
peyush
el 16 de Jul. de 2015
Comentada: peyush
el 19 de Jul. de 2015
For example: I have an image whose resolution is 46x67 and I want to change it to 35x45...How should I do that?...any help is highly appreciated
2 comentarios
Respuesta aceptada
Image Analyst
el 18 de Jul. de 2015
You can either crop it
croppedImage = imresize(originalImage, [35, 45]);
or you can use indexing if the original image is larger:
croppedImage = originalImage(topRow:topRow+34, leftColumn:leftColumn+44);
You can make topRow and leftColumn whatever you want, such as 1.
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Preview and Device Configuration en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!