/home/funnywii/Documents/CV/360/AdasSourrondView/avm_app_demo.cpp: In function ‘int main(int, char**)’:
/home/funnywii/Documents/CV/360/AdasSourrondView/avm_app_demo.cpp:133:58: error: cannot bind non-const lvalue reference of type ‘cv::Mat&’ to an rvalue of type ‘cv::Mat’
133 | merge_image(undist_dir_img[0](roi), undist_dir_img[1](roi), merge_weights_img[2], out_put_img(roi));
| ~~~~~~~~~~~~~~~~~^~~~~
In file included from /home/funnywii/Documents/CV/360/AdasSourrondView/avm_app_demo.cpp:8:
/home/funnywii/Documents/CV/360/AdasSourrondView/./srcs/common.h:50:41: note: initializing argument 2 of ‘void merge_image(cv::Mat, cv::Mat&, cv::Mat&, cv::Mat&)’
50 | void merge_image(cv::Mat src1, cv::Mat& src2, cv::Mat& w, cv::Mat& out);
| ~~~~~~~~~^~~~
/home/funnywii/Documents/CV/360/AdasSourrondView/avm_app_demo.cpp:136:58: error: cannot bind non-const lvalue reference of type ‘cv::Mat&’ to an rvalue of type ‘cv::Mat’
136 | merge_image(undist_dir_img[0](roi), undist_dir_img[3](cv::Rect(0, 0, xl, yt)), merge_weights_img[1], out_put_img(cv::Rect(xr, 0, xl, yt)));
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/funnywii/Documents/CV/360/AdasSourrondView/avm_app_demo.cpp:8:
/home/funnywii/Documents/CV/360/AdasSourrondView/./srcs/common.h:50:41: note: initializing argument 2 of ‘void merge_image(cv::Mat, cv::Mat&, cv::Mat&, cv::Mat&)’
50 | void merge_image(cv::Mat src1, cv::Mat& src2, cv::Mat& w, cv::Mat& out);
| ~~~~~~~~~^~~~
/home/funnywii/Documents/CV/360/AdasSourrondView/avm_app_demo.cpp:139:77: error: cannot bind non-const lvalue reference of type ‘cv::Mat&’ to an rvalue of type ‘cv::Mat’
139 | merge_image(undist_dir_img[2](cv::Rect(0, 0, xl, yt)), undist_dir_img[1](roi), merge_weights_img[0], out_put_img(roi));
| ~~~~~~~~~~~~~~~~~^~~~~
In file included from /home/funnywii/Documents/CV/360/AdasSourrondView/avm_app_demo.cpp:8:
/home/funnywii/Documents/CV/360/AdasSourrondView/./srcs/common.h:50:41: note: initializing argument 2 of ‘void merge_image(cv::Mat, cv::Mat&, cv::Mat&, cv::Mat&)’
50 | void merge_image(cv::Mat src1, cv::Mat& src2, cv::Mat& w, cv::Mat& out);
| ~~~~~~~~~^~~~
/home/funnywii/Documents/CV/360/AdasSourrondView/avm_app_demo.cpp:142:58: error: cannot bind non-const lvalue reference of type ‘cv::Mat&’ to an rvalue of type ‘cv::Mat’
142 | merge_image(undist_dir_img[2](roi), undist_dir_img[3](cv::Rect(0, yb, xl, yt)), merge_weights_img[3], out_put_img(cv::Rect(xr, yb, xl, yt)));
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/funnywii/Documents/CV/360/AdasSourrondView/avm_app_demo.cpp:8:
/home/funnywii/Documents/CV/360/AdasSourrondView/./srcs/common.h:50:41: note: initializing argument 2 of ‘void merge_image(cv::Mat, cv::Mat&, cv::Mat&, cv::Mat&)’
50 | void merge_image(cv::Mat src1, cv::Mat& src2, cv::Mat& w, cv::Mat& out);
| ~~~~~~~~~^~~~