A Threshold Selection Method from Gray-Level Histograms