I have a 19x19 image which have already been thresholded. now i need to read every pixel and determine if its black than output it as 1, if its white than output it as 0. please help ASAP. any help would be much appreciate.
1 | initial version |
I have a 19x19 image which have already been thresholded. now i need to read every pixel and determine if its black than output it as 1, if its white than output it as 0. please help ASAP. any help would be much appreciate.
2 | No.2 Revision |
I have a 19x19 image which have already been thresholded. now i need to read every pixel and determine if its black than output it as 1, if its white than output it as 0. please help ASAP. any help would be much appreciate.
Edited:
I need to output the binary to a text file