Computer Vision: Fitting probability models