0
是否有任何可能使用opencv imread從vC++的圖片框中讀取圖像? 現在用的是下面的代碼,作爲imread在opencv參數的picturebox圖像
vector<Mat> vImg;
Mat rImg;
vImg.push_back(imread(pictureBox1->Image));
vImg.push_back(imread(pictureBox2->Image));
Stitcher stitcher = Stitcher::createDefault();
stitcher.stitch(vImg, rImg);
,但我收到錯誤
什麼是'pictureBox1'? –
好吧,你*絕對*不能使用imread來執行該任務,因爲它讀取*文件*。 – berak
@ berak所以有什麼替代方法來讀取圖片框控件中存在的圖像? – user3181319