필터 지우기
필터 지우기

How to increase image size while keeping image sharp?

조회 수: 2 (최근 30일)
Kevin
Kevin 2021년 5월 11일
댓글: Kevin 2021년 5월 11일
Hi everyone,
This is a pretty general question. I took a screenshot of the MATLAB toolstrip (actually part of it).
It looks great except I want it bigger. So I use imresize( ),
B = imresize(A, 4);
but it looks pixelated.
Is there a better way to do this?
  댓글 수: 2
Jonas
Jonas 2021년 5월 11일
did you try the imsharpen() function?
Kevin
Kevin 2021년 5월 11일
Just try it out. Does not help (it does not make it worst).

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2021년 5월 11일
You need to use the nearest option:
B = imresize(A, 4, 'nearest');
  댓글 수: 5
Image Analyst
Image Analyst 2021년 5월 11일
Yes, it can be, which is good for me because that's my whole career and it's good if people think it's hard because they are impressed with my work.
Post your original image if you want.
Kevin
Kevin 2021년 5월 11일
Here is the mat-file that has the original image.
Actually I have also tried using IrfanView and this is what I did:
load tmp.mat
imshow(A)
% Select "Save As" and save the image as PNG file
Open the image in IrfanView and press + a few times to enlarge the image. The result is better than what I get in MATLAB. So there is a solution. What magic in IrfanView?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by