Segmentation of images in p-Adic and Euclidean Metrics