stitching_detailed sample code unhandled exception when run
I was trying out the sample code stitching_detailed.cpp. It built successfully but has the following error when run:
Unhandled exception at 0x00007FFDE7011F28 in stitching_detailed.exe: Microsoft C++ exception: cv::Exception at memory location 0x000000935AF3B820.
However, when I build and run the other sample code stitching.cpp it works fine. I'm using opencv 3.1 on visual studio 2015.
Edit 1:
The link to the stitching_detailed.cpp code is here. When I try to run it, it points to return Ptr<T>(new T());
of the following part of code in here:
Ptr<T> makePtr()
{
return Ptr<T>(new T());
}
Edit 2
When I ran the program in the command line it showed this error:
OpenCV Error: The function/feature is not implemented (OpenCV was built without
SURF support) in cv: : detail: :SurfFeaturesFinder: :SurfFeaturesFinder, file C: \bui
ldslave64\win64 amdoc1\master PackS1ave-win64-vc14-shared\opencv\modu1es\stitchi
ng\src\matchers . cpp, line 361
It seems that for this opencv version the feature is not installed (it is in a separate opencv_contrib module). Will try it.
Edit 3 (Found solution)
The error occurred because I didn't install the separate opencv_contrib module which has a feature (SURF feature detection) that is used in the program. It ran with no errors after compiling opencv with the opencv_contrib module using cmake.
For more details, I followed instructions on compiling it through this website: https://putuyuwono.wordpress.com/2015...