QT OPENCV void CWaterfallPlot::ChangeMatValue(cv::Mat& mat, const cv::Point& pt, const QRgb & rb) { cv::Vec3b color = mat.at<cv::Vec3b>(pt); color[0] = qBlue(rb); color[1] = qGreen(rb); color[2] = qRed(rb); mat.at<cv::Vec3b>(pt) = color; }