get this error " error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow' " while implementing image stitching
int main() { try { bool try_use_gpu = false; vector<mat>imgs; Mat pano; imgs.push_back(imread("newyork1.jpg")); imgs.push_back(imread("newyork2.jpg"));
//Stitcher::Mode mode = Stitcher::PANORAMA;
//Ptr<Stitcher> stitcher = Stitcher::create(mode, try_use_gpu);
Stitcher stitcher = Stitcher::createDefault(try_use_gpu);
Stitcher::Status status = stitcher.stitch(imgs, pano);
if (status != Stitcher::OK)
cout << "Panorama unsuccessful" << endl;
else {
imshow("panorama", pano);
waitKey(0);
imwrite("panoramaimg.jpg", pano);
return 0;
}
i think there might be a problem with my image , any help pls
please check image path ::
checking the image, works well, there is nothing wrong with the reading of the images, it seems it is my implementation of my panorama
@Allaye webserver does not like your image http://answers.opencv.org/upfiles/154...
my browser firefox doesn't like your image but edge likes it @berak in firefox I can sse :
don't understand you pls
okay, that means you have found a way around it right?