Using 4-connectivity, perform Connected Component (CC) labeling on the following binary image and show:

i. The result after the first pass of the CC labeling algorithm

ii. The equivalence table

iii. The final result after the second pass of the labeling algorithm

iv. Total number of objects in this image

v. Decimate (downsample) this image by a factor of 4 and generate a new image

00000000
00001100
00111100
01100100
00001000
00011100
00000110
00111100
Solve all these parts step by step?