add capability for per-pixel prior probabilities in the bayes classifier