Hiding the 0 pixel values from the image in display

20 visualizaciones (últimos 30 días)
Ahsan Abbas
Ahsan Abbas el 31 de Jul. de 2015
Comentada: Ahsan Abbas el 1 de Ag. de 2015
Hello, i have a binary image and don't want to show the 0 pixels values in display, so i can superimpose it into an other image how i can do that ? I change the transparency of the image but its for the whole image, The picture is shown below for illustration. Blue portion represent the 0 pixel values and brown to 1...

Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Jul. de 2015
image(YourMatrix, 'AlphaData', YourMatrix)

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by