Automatic Segmentation of Image