how to save image in png format by keeping data values?

1 回表示 (過去 30 日間)
Jack Moriss
Jack Moriss 2016 年 8 月 16 日
コメント済み: Jack Moriss 2016 年 8 月 17 日
hi...i apply dwt on redchannel of an image and after that i change pixel value of hh and hl bands and apply idwt and after obtain new image i save it in png format. in extraction part the value of hh band is correct but HL band has changed.Why is this happening?while png format is losseless
  2 件のコメント
Image Analyst
Image Analyst 2016 年 8 月 16 日
Is HL integer or floating point? (Sorry, I'm not that familiar with wavelets.) And can PNG handle floating point - I don't know since I only use PNG for integer images.
Jack Moriss
Jack Moriss 2016 年 8 月 16 日
my image is double and this problem happen when i use 2 band or alpha channel

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

回答 (1 件)

Image Analyst
Image Analyst 2016 年 8 月 16 日
Why do you need PNG format? If you just need to recall it in MATLAB, use a .mat file. Otherwise, if other programs, like Photoshop need to use it, then convert it to uint8.
image8 = uint8(255 * mat2gray(HLImage));
imwrite(image8, filename);
  1 件のコメント
Jack Moriss
Jack Moriss 2016 年 8 月 17 日
it is a steganography project and i need to save it in one of image format but all of them loss information

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by