problem in image resizing when shown in axes?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello!
I want to resize the image to 50x50 pixels. Then I show it in an axes(I have a user interface and axes placed on my interface), but it does not seem normal -- the resized image lost its resolution.
This is my code:
image = imread('2.jpg');
resizeIm = imresize(image,[50 50]);
axes(handles.axes1);
imshow(resizeIm);
Please see the the two images I attached. You will know.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146804/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146805/image.jpeg)
Thanks
0 comentarios
Respuestas (1)
Sean de Wolski
el 14 de En. de 2015
How big was the original? Of course it's going to lose resolution if you remove pixels (i.e. 50x50 is smaller than what you started with).
3 comentarios
Image Analyst
el 15 de En. de 2015
If you don't want a loss of resolution, the solution is to not reduce the size. If you reduce the size, you're going to reduce the resolution - there's no way around it.
Ver también
Categorías
Más información sobre Image Data Workflows 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!