Model-free classification of X-ray scattering signals applied to image segmentation