How to rescale image data ?
Ahora está siguiendo esta pregunta
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
Se ha producido un error
No se puede completar la acción debido a los cambios realizados en la página. Vuelva a cargar la página para ver el estado actualizado.
0 votos
Comparte un enlace a esta pregunta

Respuesta aceptada
0 votos
Comparte un enlace a esta respuesta
6 comentarios
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
You would have to write your own routine named rescale() to do that, and if you did then the routine would cause conflicts with the existing matlab rescale()
MATLAB rescale() function always leaves the array the same size, and changes the value representation to a different range, such as converting integer 10000 to 24000 to be the range 0 to 1 (for use in processing CT Scan)
Whether matlab is "right" or "wrong" to call changing the size of an image as "resizing" instead of "rescaling" does not matter at the moment: it does use imresize() for changing image size, and it does use rescale() for changing value scaling factors linearly without changing the size of the array, and you just have to work with that.
I already posted the code to change the size of the image and then center-crop the result.
Comparte un enlace a este comentario

Comparte un enlace a este comentario
Más respuestas (0)
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
