Figure 2 Growing objects using the gray shades in an image. The left side shows the input, and the right side shows the result of growing objects in this manner. the 1s are the background object produced by grouping the 1s, 2s, and 3s. The triangle of 2s is a grouping of the 7s and 8s, and the rectangle of 3s is the 8s and 9s.

12121212111122211221  11111111111111111111
13121312123121312312  11111111111111111111
12213121212131212122  11111111111111111111
22222218212113112122  11111112111111111111
12111187732121211122  11111122211111111111
12211788872221212211  11111222221111111111
22118778888212212212  11112222222111111111
12121222121222211212  11111111111111111111
21222122111222312123  11111111111111111111
32121321213221322121  11111111111111111111
22121122222121222122  11111111111111111111
22122298989999992212  11111133333333331111
12222298889998992112  11111133333333331111
12212189999898892122  11111133333333331111
12122299998999992122  11111133333333331111
22133389989988982123  11111133333333331111
12122212312321212212  11111111111111111111
13121213212132121321  11111111111111111111
11323212212121112222  11111111111111111111
12212121222222111122  11111111111111111111