Java - Convert Image to Binary (Two Colours/Black & White)
Converting it to "negative" will give you single channel result (0-255). To convert this image to binary, you need thresholding. This threshold value will have a HIGH (0-255) and LOW (0-255). These values are dependent on your application (what you wish to segment). For instance, you could setup an empty image structure and set all values to '0'. Set '1' to channel values that fall between HIGH and LOW. However, remember that performing naive segmentation like this may not give you good results.