1 | initial version |
If you provide a sample of the images you have, it'd help me to answer your question.
Do you mean and are you sure that every white pixel represents the background? If the answer is yes, then you can convert every not white pixel to be a white pixel and every white pixel to be a black pixel!