Changed parameters of functions that were cv::Mat to cv::Mat& references