Transparency

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 commentaire

Sean de Wolski
Sean de Wolski le 3 Juin 2011
Transparent when you save it to a file?

Connectez-vous pour commenter.

Réponses (2)

Walter Roberson
Walter Roberson le 3 Juin 2011

0 votes

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 le 3 Juin 2011

0 votes

If you look at:
doc imwrite
PNG and GIF files both support transparency, the doc explains how to set it.

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Question posée :

le 3 Juin 2011

Community Treasure Hunt

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

Start Hunting!

Translated by