A probabilistic approach for color correction in image mosaicking applications