Fit big image to small axes in GUI
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lluis Roca
el 15 de Oct. de 2013
Comentada: Lluis Roca
el 16 de Oct. de 2013
Hi,
I have images that I want to show in axes and work on them using the Image Processing Toolbox with gui and pushbuttons.
Sometimes the images are bigger than the axes. Therefore, if the image is bigger how can show a fitted version inside the axes (while keeping the same aspect ratio) and run the IPT on this "fitted" version?
Thanks.
0 comentarios
Respuesta aceptada
Image Analyst
el 15 de Oct. de 2013
Use imshow(). It will auto-size the image to fit the max space you allowed for the axes while keeping the aspect ratio the same.
3 comentarios
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!