Hiding the 0 pixel values from the image in display

14 visualizzazioni (ultimi 30 giorni)
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...

Risposta accettata

Walter Roberson
Walter Roberson il 31 Lug 2015
image(YourMatrix, 'AlphaData', YourMatrix)

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by