c++ - opencv stitching with free dll -
i have function in project stitching, function working fine, simple:
mat output(m_img, true), pano; // panaoramic image bool try_use_gpu = true; stitcher isticher = stitcher::createdefault(try_use_gpu); // set feature finder orb isticher.setfeaturesfinder(new detail::orbfeaturesfinder()); try{ stitcher::status status = isticher.stitch(imgs, pano); if (status != stitcher::ok) { log("error stitching - code: %d", int(status)); return -1; } } catch(exception e) { log("cannot stitch image,%s",e.what()); }
the code works , able stitch images well. problem when want deploy code, realized have use non-free dll. otherwise, .exe
won't run. questions are: in order use stitcher
class opencv mean have pay, even if not using surf
or sift
algorithms? there way without using "nonfree dlls"? note: using opencv 2.4.2
. edit: tested opencv 2.4.11
so, after lot of digging. think have found solution issue: there flag in opencv_modules.hpp
called: have_opencv_nonfree
if undefine
or comment definition of flag , build opencv
source should fix issue, i.e. opencv_stitching.dll
not depeneds on opencv_non-free.dll
Comments
Post a Comment