update to new OpenCV 3.0 ml API