Hi,
I keep getting an OpenCV exception when using lens type “brown” in the nvcalib library.
I have tried numerous different input pictures, but they all give the same result.
Here is the backtrace:
OpenCV Error: Assertion failed (ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1) in createGaussianKernels, file …/modules/imgproc/src/smooth.cpp, line 2098
terminate called after throwing an instance of ‘cv::Exception’
what(): …/modules/imgproc/src/smooth.cpp:2098: error: (-215) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function createGaussianKernels
XmlUtil: Reading Input Calib filenames Xml: /var/wmt/tmp/chris/lowres-iphone//rig_spec.xml
Thread 1 “nvcalib_sample” received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at …/sysdeps/unix/sysv/linux/raise.c:58
58 …/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at …/sysdeps/unix/sysv/linux/raise.c:58
#1 0x00007ffff3d0a37a in __GI_abort () at abort.c:89
#2 0x00007ffff434256d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff4340316 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff4340361 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff4340579 in _cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff6bb3172 in cv::error(cv::Exception const&) ()
from /var/wmt/VRWorks_360_Video_SDK_1.5_Linux_package/external/opencv-3.2/binary/libopencv_core.so.3.2
#7 0x00007ffff6bb3303 in cv::error(int, cv::String const&, char const*, char const*, int) ()
from /var/wmt/VRWorks_360_Video_SDK_1.5_Linux_package/external/opencv-3.2/binary/libopencv_core.so.3.2
#8 0x00007ffff4b75a63 in cv::createGaussianKernels(cv::Mat&, cv::Mat&, int, cv::Size, double, double) [clone .constprop.147] ()
from /var/wmt/VRWorks_360_Video_SDK_1.5_Linux_package/external/opencv-3.2/binary/libopencv_imgproc.so.3.2
#9 0x00007ffff4b765be in cv::GaussianBlur(cv::_InputArray const&, cv::OutputArray const&, cv::Size, double, double, int) () from /var/wmt/VRWorks_360_Video_SDK_1.5_Linux_package/external/opencv-3.2/binary/libopencv_imgproc.so.3.2
#10 0x00007ffff7b11d6f in CorrelateAllPanoImages(std::vector<eldorado::camera::Camera, std::allocatoreldorado::camera::Camera > const&, cv::Mat*, float const*, unsigned int) ()
from /var/wmt/VRWorks_360_Video_SDK_1.5_Linux_package/nvcalib/binary/libnvcalib.so
#11 0x00007ffff7ad128d in CalibrationInstance::evaluateCalibration(float, float*) ()
from /var/wmt/VRWorks_360_Video_SDK_1.5_Linux_package/nvcalib/binary/libnvcalib.so
#12 0x00007ffff7ac04f6 in nvcalibGetResultParameter ()
from /var/wmt/VRWorks_360_Video_SDK_1.5_Linux_package/nvcalib/binary/libnvcalib.so
#13 0x000000000040844c in main ()