fix issue: undefined local variable or method `cv' for OpenCV::Cv::Mat:Class

submitted by cgat