Fixed OpenCV reference bug with the confusion matrices.