cv::Mat& should be replaced with InputOutputArray.
std::vector<Vec4i>& should be replaced with InputArray