Filter löschen
Filter löschen

Is it possible to access the alpha value from an RGB image

3 Ansichten (letzte 30 Tage)
aswathy pavithran
aswathy pavithran am 13 Jun. 2020
Beantwortet: Walter Roberson am 13 Jun. 2020
i want to measure transparency of a hazy or foggy image.is there any other parameter that gives me the information of transparency.

Antworten (2)

Ameer Hamza
Ameer Hamza am 13 Jun. 2020
If you have a png image, you can get transparency values using the 3rd output argument of imread()
[img, ~, alpha] = imread('https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png');

Walter Roberson
Walter Roberson am 13 Jun. 2020

Kategorien

Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by