Thresholding is the simplest method of image segmentation. It is used to separate out regions of an image corresponding to objects which we want to analyze. This separation is based on the variation of intensity between the object pixels and the background pixels.