Modifications for OpenCV 3.0

Changed some interfaces for the new OpenCV release