3

画像のスティッチングに別の方法を使用しようとしましたが、次のエラーが発生しました...画像の形式またはサイズを変更しようとしましたが、何も起こりません...何かアイデアはありますか?

エラー:

エラー: 不明な関数でアサーションが失敗しました (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);
 }
4

2 に答える 2

0

質問はこれに似ています:

推定変換なしで合成パノラマを使用する

私はちょうどそこにあなたに答えました。

于 2016-03-16T08:34:24.370 に答える