Uploaded images are pixelated

3 ビュー (過去 30 日間)
Julie
Julie 2023 年 4 月 19 日
コメント済み: DGM 2024 年 9 月 23 日
I am using a GUI created by someone else and it's working great with the sample images I uploaded from their github, which are about 10MB .jpg files that are 3684 x 4912 x 3 in size. I am trying my own .jpg files which are 178KB and 688 x 917 x 3 in size, and they are all pixelated. Is there a way to remedy this without code? Is there a setting somewhere that will improve the image quality? Or do I need to start with a better quality image to begin with? These are images that I swiped from the web and a powerpoint file, so I am thinkng I just need better quality images.

採用された回答

Star Strider
Star Strider 2023 年 4 月 19 日
JPEG images have problems because of the discrete cosine transform used to encode them. See the Wikipedia section on JPEG compression for details.
For best results, use PNG.
  8 件のコメント
Julie
Julie 2023 年 4 月 27 日
Yes I actually contacted the author of the GUI who changed the code so the GUI will upload TIFF images now, less lossy and more compatible with our slide imaging program. She agreed that the GUI was trained on larger images and the lack of information in the images will compromise the ability of the GUI to classify the images. Thank you everyone for your help.
DGM
DGM 2024 年 9 月 23 日
If the GUI utilizes uiimage() components for image display, then you will likely see JPG artifacts regardless of the original image format. Using larger images will simply make them less visually conspicuous, but they'll still be there.
I don't have enough information here to be certain, but that's a quite plausible explanation.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by