Image Quality Decrease and pixelated

38 ビュー (過去 30 日間)
Ian
Ian 2014 年 12 月 1 日
コメント済み: DGM 2023 年 2 月 5 日
The quality of the image decrease when I read and display out in matlab, please advice.
The below are the commands that I had used: imread,imshow
Image Info: Format:JPEG Dimension:1,434 x 1,014 Size:487KB
  1 件のコメント
Adam
Adam 2014 年 12 月 1 日
Try using image or imagesc instead, depending if you have full R, G, B data or just indexed data.
I never use imshow as it always seems to give appalling results.

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

採用された回答

Image Analyst
Image Analyst 2014 年 12 月 1 日
I don't know what Adam does with imshow() but it works fine for me and is my preferred method, unlike imagesc() which applies some colormap that you didn't ask for. Don't use pcolor - that's even worse. Anyway, why do you say the image quality decreases. Show me a screenshot of the image in imshow() and in some other program (like paint or Photoshop) so I can see why you think it's worse. It should display it exactly as it was stored on disk, just magnified or demagnified for display of course. Of course you may have stored a horrible image where you jpegged the heck out of it and it shows up with horrendous jpeg block artifacts, but that would be present in any program that displays it.
  11 件のコメント
Eric Auth
Eric Auth 2018 年 4 月 12 日
This is the best I can do. Taken a super small crop of the initial .tiff and zipped it with Adobe Photoshop (which changed to .tif) and then into a zip folder. Original .tiff image is 118 MB.
DGM
DGM 2023 年 2 月 5 日
I know it's too late, but I saw this while cleaning up. There's a bunch of Photoshop metadata in that file, the purpose of which I don't understand. There is an included ICC profile, but there's also a 1x4236 numeric vector embedded by Photoshop. So... more profile data?
Maybe in another five years, someone will tell us what it all means.

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

その他の回答 (2 件)

meola22
meola22 2017 年 5 月 2 日
編集済み: meola22 2017 年 5 月 3 日
Just stumbled upon the same problem and the solution is quite simple. All one needs to do is change the OpenGL from software to hardware. So just add this line of code:
opengl hardware
That fixed the pixelation problem for me.
  1 件のコメント
Eddy Philippe
Eddy Philippe 2022 年 3 月 4 日
This improved it, thx! It's still not 100% perfect resizing (as I get i photoshop), so I'm still working on it.

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


Jose
Jose 2022 年 2 月 23 日
A mitigation to a pixelated image display may be interpolation available from R2019b:
figure;
subplot(121); imshow('logo.tif')
subplot(122); imshow('logo.tif', 'Interpolation','bilinear')
I use it to display text pages converted to images.
My thanking to Steve Eddins:

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by