Implement image segmentation using region growing on the image shown below. The seed is the center pixel of the image. The region is grown horizontal, vertical, and diagonal directions. The similarity, criterion is the absolute difference between two pixels values is less than or equal to 7.
12 12 12 12 12 12 12
12 12 12 71 72 12 12
61 12 62 66 61 68 62
12 61 12 62 72 65 64
12 62 61 67 69 12 67
12 12 12 12 12 12 121
12 12 12 12 12 12 12