Hiding the 0 pixel values from the image in display

5 次查看(过去 30 天)
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...

采纳的回答

Walter Roberson
Walter Roberson 2015-7-31
image(YourMatrix, 'AlphaData', YourMatrix)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by