c++ - Compose panorama doesn`t work -
i try use different way stitching images, got following error...i try change format of images or size nothing happens...any ideas?
error:
error: assertion failed (imgs.size() == imgs_.size()) in unknown function, file ......\src\opencv\modules\stitching\src\stitcher.cpp , line 128
my code:
int main( int argc, char** argv ) { stitcher stitcher = stitcher::createdefault(); mat image11,image22; mat pano,output_frame; vector<mat> imgs,currentframes; // load 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); }
Comments
Post a Comment