![]() |
|
#1
|
|||
|
|||
Binary Image IssueI convert a color image into binary with this line of code
Code:
where minThresis 0 and maxThres 1 The output is a black image My question is since the resulting image is pure black. Can it still be considered binary? (I just want to make sure) The reason why I'm asking is because I need a binary image with pixel values of 0's and 1's and since the resulting image (which is a black image) already has the values that I want (i checked the values). I guess I just want to verify if having a binary image with pixel values of 1's and 0's will always result in a black image |
|||
|
#2
|
|||
|
|||
Re: Binary Image IssueQuote:
Quote:
Quote:
It is not a black image; it is a binary image with two different values of pixels: 0 and 1. (But I said that already). Now on a scale from 0 through 255, a single pixel with a value of 1 (very, very, very dark gray) may be practically indistinguishable from a single pixel with a value of 0 (pure black), or, maybe not. Whether there is a humanly perceptible difference between your dst image and a pure black image depends on the quality of the monitor (or printer) and room lighting and the visual acuity of the human observer and whether there are large areas of pure black in the middle of large areas of very, very, very dark gray (or vice-versa). Bottom line: If you are processing the image mathematically, there may be a lot of practical difference between a black image and a binary image with pixel values 0 and 1 (depending on the nature of the mathematical treatment). On the other hand, if you are just looking at the image, well, maybe not so much... Regards, Dave Footnote: If it just happened that there were no pixels in the grayscale image whose value was zero, then all pixels in the dst image would have had values of 1. It wouldn't be a black picture; it would be a solid very, very, very dark gray picture. If it just happened that all pixels in the in the grayscale had values equal to zero, then all pixels in the dst image would have had values of zero. Then the dst image would be a solid black picture. __________________
Sometimes I just can't help myself... |
|
#3
|
|||
|
|||
Re: Binary Image IssueQuote:
Thanks again for your comments |
Recent GIDBlog
Match IP in CIDR by gidnetwork
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert Second Image to Binary using OpenCv | stbb24 | C++ Forum | 2 | 02-Jun-2012 00:58 |
| How do I execute a function in a switch statement? | kkmoslehpour | C Programming Language | 15 | 17-Oct-2011 10:06 |
| Problem with updating itk image in Qt user interface | Angobar | C++ Forum | 0 | 12-Sep-2011 06:33 |
| Reading and writing binary files in certain format | Dream86 | C++ Forum | 10 | 06-Aug-2004 10:38 |
| Google Adsense introduces targetted image ads | Div | Advertising & Affiliates Forum | 5 | 23-May-2004 10:59 |
Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The