MATLAB Answers


Hiding the 0 pixel values from the image in display

Asked by Ahsan Abbas on 31 Jul 2015
Latest activity Commented on by Ahsan Abbas on 1 Aug 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...


Sign in to comment.

1 Answer

Answer by Walter Roberson
on 31 Jul 2015
 Accepted Answer

image(YourMatrix, 'AlphaData', YourMatrix)

  1 Comment

Sign in to comment.