Morphology and Probability in Image Processing