hi everybody
consider the following code:
cv::Mat out (1000,1,CV_64FC1,cv::Scalar::all(10));
cv::Mat out2 (186,186,CV_64FC1,cv::Scalar::all(20));
cv::Mat diag_i = out2.diag(0);
auto rect = cv::Rect(0, 5, 1, 1000);
cv::Mat out_roi = out(rect);
out_roi = diag_i;
why out matrix does not change?
i select ROI from out matrix and change it by out_roi = diag_i