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.
Thanks

回答 (1 件)

Sean de Wolski
Sean de Wolski 2015 年 1 月 14 日

0 投票

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 件のコメント

Mansoor ahmadi
Mansoor ahmadi 2015 年 1 月 15 日
thanks sir!
the original image is 295x171 pixel, I think the pixels is removed, But what is the solution, I have to have all images in same size(50x50) pixel in my project "Signature Recognition System". help me sir please.
Image Analyst
Image Analyst 2015 年 1 月 15 日
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.
Sean de Wolski
Sean de Wolski 2015 年 1 月 15 日
@IA, Unless the image is all one color

サインインしてコメントする。

タグ

タグが未入力です。

質問済み:

2015 年 1 月 14 日

コメント済み:

2015 年 1 月 15 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by