cv::Mat Mat::rowRange(int startrow, int endrow) const;
cv::Mat image; // assume this is a matrix cv::Mat first_row = image.rowRange(0, 1);
cv::Mat image; // assume this is a matrix cv::Mat rows_5_to_10 = image.rowRange(4, 10);
cv::Mat image; // assume this is a matrix cv::Mat new_values; // assume this is another matrix image.rowRange(2, 5) = new_values;This code replaces rows from index 2 to index 5 (inclusive) in the matrix `image` with the corresponding rows from the matrix `new_values`. The `cv::Mat::rowRange` function is part of the OpenCV core library.