use mode (of smoothed histogram, k=5) instead of median. potentially faster and better
the foreground object model is now a naive bayes MLE like predictor. It is shared between all rois ;)