Display Image from uint8 array

5 ビュー (過去 30 日間)
Jannis Held
Jannis Held 2021 年 4 月 27 日
回答済み: Image Analyst 2021 年 4 月 27 日
Hey!
I got an 1x78423 uint8 array that i now want to save as an jpg and display it afterwards.
Anyone got an idea how to do so.
Thanks!

回答 (1 件)

Image Analyst
Image Analyst 2021 年 4 月 27 日
Why is your image 78,423 pixels long by one line high? Your screen is not even that many pixels wide. If you want to display that line, then subsample it so it fits on the screen or is less than 65,500 pixels wide.
Also, never save an image in JPG format. Use PNG. JPG is a lossy compression format which will change your data. PNG is lossless.

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by