Nonzero pixels in black image?!

2 ビュー (過去 30 日間)
Steven
Steven 2013 年 12 月 25 日
コメント済み: Walter Roberson 2013 年 12 月 25 日
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 日
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 件のコメント
Image Analyst
Image Analyst 2013 年 12 月 25 日
Use imwrite to save your binary image and then post it.
Walter Roberson
Walter Roberson 2013 年 12 月 25 日
What is class() of the data ? If it is not "logical" then there are non-zero values that are dark.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by