X-ray mapping images of polished sections are classified using two unsupervised clustering algorithms. The methods applied are the k-means algorithm and an extended spectral fuzzy c-means algorithm. The extentions include new types of memberships that are related to the contextual information. In addition to the traditional spectral membership we apply a spatial membership and a parental membership. The parental membership is introduced by implementing the algorithm in a scale-space representation. Both spectral and spatial information is carried across levels, enhancing speed and visual impression of the segmentation of image data.