Can we find the transparency of an overlay on an image ?
1 回表示 (過去 30 日間)
古いコメントを表示
If I have an image with a transparent overlay on it, can we find the percentage of transparency from the alpha channel of the image?
6 件のコメント
Walter Roberson
2017 年 10 月 5 日
編集済み: Walter Roberson
2017 年 10 月 5 日
Could you post a sample image?
Will the line always be straight? Is the line in a known position or does it need to be detected?
回答 (1 件)
Walter Roberson
2017 年 8 月 17 日
Yes.
if isinteger(YourAlphaData)
tAD = im2double(YourAlphaData);
else
tAD = YourAlphaData;
end
percent_transparent = 100 * (1 - tAD);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!