Upgrad to OpenCV 2.0 interfaces.