A regularization-based approach for unsupervised image segmentation