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

Steven
Steven 2013년 12월 25일
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?
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개)

카테고리

도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2013년 12월 25일

댓글:

2013년 12월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by