A. Threshold the image so that all values below 100 are set to 0 and
all values equal to or above 100 are set to 255. Write the image
to a file named "binary1.pgm". The file should
look like this.
This file should have the following header lines:
P2
# Comment line identifying this as a PGM binary image, binary.pgm
8 8
255
- the image pixel values should be here, 8 rows and 8 cols.
B. View binary1.pgm with xv to check if the objects are
in black against a white background.