画像のスティッチングに別の方法を使用しようとしましたが、次のエラーが発生しました...画像の形式またはサイズを変更しようとしましたが、何も起こりません...何かアイデアはありますか?
エラー:
エラー: 不明な関数でアサーションが失敗しました (imgs.size() == imgs_.size())、ファイル ......\src\opencv\modules\stitching\src\stitcher.cpp の 128 行目
私のコード:
int main( int argc, char** argv )
{
Stitcher stitcher = Stitcher::createDefault();
Mat image11,image22;
Mat pano,output_frame;
vector<Mat> imgs,currentFrames;
// Load the images
Mat image1= imread( argv[1] );
Mat image2= imread( argv[2] );
printf("-- umwandlung works");
currentFrames.push_back(image1);
currentFrames.push_back(image2);
stitcher.estimateTransform( currentFrames );
stitcher.composePanorama(currentFrames, output_frame );
waitKey(0);
}