Transparency

조회 수: 2 (최근 30일)
priya
priya 2011년 6월 3일
Hi,
Is it possible to make a part of the image transparent in matlab? Is there any specific function in the Image processing toolbox?
Thanks,
Priya
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2011년 6월 3일
Transparent when you save it to a file?

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2011년 6월 3일
Every image object has an AlphaData property. There is no specific function to set this, but you can use set().
If you display the image using image() or imagesc() then you can add an 'AlphaData' option to the call,
image(YourImage,'AlphaData',TheAlphaValues)
Alpha values range from 0 (completely transparent) to 1 (completely opaque)

Sean de Wolski
Sean de Wolski 2011년 6월 3일
If you look at:
doc imwrite
PNG and GIF files both support transparency, the doc explains how to set it.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by