Thresholding is the process of transforming a set of data that encompasses any range of values to a new set with only two possible values. This process is used often in digital image processing. Thresholding is a form of segmentation, which can be described as grouping pixels together that have like attributes. In most examples of image thresholding, the RGB value (or the Grey Level value for greyscale images) is the attribute of interest.