turn on optimization
handle reading ROIs correctly
compute pixel probabilities directly, rather than via opencv
read classifier from first argument