The first step is to fill up black isolated holes and to
remove white isolated regions which are smaller than the minimum face area in training images. The
threshold (170 pixels) is set conservatively. The filtered image followed by initial erosion only leaves
the white regions with reasonable areas as illustrated in Fig. 4.