how to save jpeg after compression code ?

2 ビュー (過去 30 日間)
merr LAMINe
merr LAMINe 2020 年 10 月 26 日
コメント済み: merr LAMINe 2020 年 10 月 27 日
After I do all steps of jpeg process (change color space, dwnsampling, blocks, dct, zigzag, rle huffman) I obtained a tables, but where is the compressed image jpeg or how I save this compressed image?
  1 件のコメント
Mathieu NOE
Mathieu NOE 2020 年 10 月 27 日
hi
can you share your code ?

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

採用された回答

Walter Roberson
Walter Roberson 2020 年 10 月 27 日
save it any way you like, such as using save() into a .mat file, or write the information into different sheet names of xlsx files, or use fwrite to write a carefully constructed binary file, or use base 64 encoding and write as text like would happen for web pages.
But if you want to write it out as an image that would be recognized by other programs then you need to research the JFIF binary file format and use that. In that situation it would typically be easier to locate a library of pre-written C or C++ code such as libjpeg and call that from MATLAB, as that will save you a lot of bother in getting the file format right.
  1 件のコメント
merr LAMINe
merr LAMINe 2020 年 10 月 27 日
Thanks very much

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDenoising and Compression についてさらに検索

製品


リリース

R2010a

Community Treasure Hunt

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

Start Hunting!

Translated by