Fig. (5) Extraction of the initial binary masks, using gradient and corner information: (a) Original image, (b) Gradient image using the Sobel operator, (c) Thresholded gradient image, resulting into a binary mask, (d) Detected corners using Harris corner detector, represented as green points, (e) Dilated corner neighboring regions, represented as green disks, (f) The binary corner regions.