图片平移 cv::Mat opencvTool::translateImage(const cv::Mat& img, int dx, int dy) { // 获取图像尺寸 int rows = img.rows; int cols = img