阅读量:0
Mat Visible= imread("../pic/rgb_1.jpg"); //右图 Mat Infrared = imread("../pic/infrared_1.jpg"); //左图 if (Visible.empty() || Infrared.empty()) { cout << "could not load the image..." << endl; return -1; } Mat vis_1,infra_1; //裁剪 // vis_1 = Visible(Rect(0,0,600,600)); // infra_1 = Infrared(Rect(0,0,600,600)); //resize调整大小 resize(Visible,vis_1,Size(600,600)); resize(Infrared,infra_1,Size(600,600));