Hiding the 0 pixel values from the image in display

6 views (last 30 days)
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...

Accepted Answer

Walter Roberson
Walter Roberson on 31 Jul 2015
image(YourMatrix, 'AlphaData', YourMatrix)

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!