In C language , Image editing programs often use the “floodfill” algorithm to fill similarly colored connected areas with anew color. Suppose that the two-dimensional 8×8 array of Figure11.4a represents the pixels of an image, where 0 represents theblack color, 1: white, 2: red, 3: green, and 4: blue, while a pixelis similarly colored connected with another, if they have the samecolor and it is adjacent to it. The similarly colored areas aredepicted in Figure 11.4b.
To implement the “flood fill” algorithm, write a recursivefloodfill() function which change the color (i.e., c) of a pixel ata location (i.e., i, j) to
PayPal Gateway not configured
PayPal Gateway not configured