Global gray-level thresholding based on object size

Global gray-level thresholding based on object size