Generate binary image for detect thresholds in image matching.