A Weighted Spatially Constrained Finite Mixture Model for Image Segmentation