Is it possible to access the alpha value from an RGB image
조회 수: 2 (최근 30일)
이전 댓글 표시
i want to measure transparency of a hazy or foggy image.is there any other parameter that gives me the information of transparency.
댓글 수: 0
답변 (2개)
Ameer Hamza
2020년 6월 13일
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');
댓글 수: 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!