Image segmentation by a parallel, non-parametric histogram based clustering algorithm