4 channel image problem reading

3 ビュー (過去 30 日間)
juan valdebenito
juan valdebenito 2017 年 5 月 23 日
コメント済み: juan valdebenito 2017 年 5 月 23 日
Hi, I removed background image with photoshop and save de image as png file. Then I used [I, map, alpha]=imread() and when display the image I, it have information that I had removed with photoshop. Original photo
photo with background removed:
Then i read the image with this command [I,map,Transparency]=imread('box_without_.png') and image I is:
alpha channel it's fine
I eventually could solve this doing I=I.*(transparency/255); but It's weird if supposedly removing the background I lost information. Also i opened the image with others programs (chrome, windows photo viewer) and look fine, without background.
So, there is something that i am doing wrong? it is a photoshop problem? or matlab problem? any suggestion Any suggestions will be appreciated ps: sorry for any english grammar error

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 5 月 23 日
[I, map, Transparency]=imread('box_without_.png');
image(I, 'alphadata', Transparency);
if ~isempty(map); colormap(map); end
  1 件のコメント
juan valdebenito
juan valdebenito 2017 年 5 月 23 日
Thanks!

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

カテゴリ

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