Add three diagnal probes; Threshold block_mask through the maximal number of foreground pixels.