In this project I measured the total area of a forest from a “simulated” image. The input consists of a pattern of zeros and ones that represent a binary image. A “one” indicates a forest cell and a “zero” represents open ground. The following example illustrates the layout of the input for this problem. Assume the input consists of a 10 x 20 (10 rows by 20 columns) grid of zeros and ones. My task was to locate all eight-connected regions in the grid. An eight-connected region consists of a set of marked cells (value 1) such that each cell in the region can be reached by moving up, down, left or right or diagonally from another marked cell in the region.