Multilevel thresholding approach using modified bacterial foraging optimization