Nonzero pixels in black image?!

In an image process, I have got an image which after being inverted (to calculate the perimeter), it becomes absolutely black on screen. But when I see the pixel values, the last row and column are not zero!
why?
I mean when you sum the pixels, it is not zero!, while the image is completely black!
Thanks!
Steven

 采纳的回答

Walter Roberson
Walter Roberson 2013-12-25
编辑:Walter Roberson 2013-12-25

0 个投票

Your display is not set up to display a color that dark notably differently than true black. This is proper behaviour. Remember, a pixel value of 1 (out of 255) is not very bright.

3 个评论

Thanks Walter.
But I forgot to mention that the image is a binary one! So when it is black, all the pixels must be 0, right? but here I have got (exactly!) the last row and column WHITE! Why?
Use imwrite to save your binary image and then post it.
What is class() of the data ? If it is not "logical" then there are non-zero values that are dark.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by