IMAGE SEGMENTATION USING THRESHOLDING