registration - Exception generated on multi band blending of two images -


i doing multi view occlusion image registration. have applied surf finding , matching of feature. using homography transformation, generated perspective transformed image of reference image. have applied linear blending , additive weighted blending generate final registered image. did not result. so, applying "multi band blending" in opencv library using c++. code written as:

// apply multi band blender overlaying of 2 images     detail::multibandblender blender; //blender::multibandblender blender;      try{     rect bounding_box;     rect dst_roi;      cout << "before blend preparing" << endl;     blender.prepare(dst_roi);      cout << "after blend preparing" << endl;     mat mask, bigimage, curimage;     //  warpperspective(image3, perimg1, h, cv::size(image3.cols,     image3.rows));     warpperspective(image3, curimage, perimg1, bounding_box.size());     //mat makemask(size sz, vector<point2f> imagecorners, mat homorgaphy)     mask = makemask(curimage.size(), scene, curimage);     blender.feed(curimage.clone(), mask, point(0, 0));     blender.blend(bigimage, mask);     bigimage.convertto(bigimage, (bigimage.type() / 8) * 8);     imshow("result", bigimage);     imwrite("multi_band_register.jpg", bigimage);     }     catch (exception e){ cout << "exception generated" << endl; } 

during running program, got exception error in

 blender.prepare(dst_roi); 

can please me resolve error?

thank you,


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -