Transparency
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Respuestas (2)
Walter Roberson
el 3 de Jun. de 2011
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)
0 comentarios
Sean de Wolski
el 3 de Jun. de 2011
If you look at:
doc imwrite
PNG and GIF files both support transparency, the doc explains how to set it.
0 comentarios
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!