A variable-domain approach for image segmentation based on statistical models