Assignment due by 11:59 pm on Monday, November 16, 2009

Assignment submission instructions:

Assignment Instructions

Write a C program that can find black rectangles against a white background in a PGM image. Here is an example image. Your program produces a report that describes each rectangle found, including its (x,y) location within the image and its width and height in pixels. Note that the image provided is merely an example. Your code must work correctly regardless of the number of rectangles and their relative positions within the image. You may assume that all images used for testing will be 640x480.

Besides main(), your program must include the following functions with the specified prototypes: