Update Thresholding function.

Fix yellow object detection that cannot detect a whole region.