Probabilistic reasoning about ship images