1. Locate the white pixels (255) inside the black T shaped areas 2. Use floodfill recursive technique to fill in the pixels in black with 255: