added a SAD threshold in order to reject false detections in repetitive patterns (e.g. bricks, windows, etc ...)