tried to build your your cmake example but still no luck
chris@chris-Aspire-X1430G:~/slit_scan_panorama/bin$ ./panorama ~/slit_scan_panorama/data/pano_raw.mp4 pan.jpg
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /home/chris/opencv/modules/imgproc/src/imgwarp.cpp, line 3492
terminate called after throwing an instance of 'cv::Exception'
what(): /home/chris/opencv/modules/imgproc/src/imgwarp.cpp:3492: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize
tried to build your your cmake example but still no luck chris@chris-Aspire-X1430G:~/slit_scan_panorama/bin$ ./panorama ~/slit_scan_panorama/data/pano_raw.mp4 pan.jpg OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /home/chris/opencv/modules/imgproc/src/imgwarp.cpp, line 3492 terminate called after throwing an instance of 'cv::Exception' what(): /home/chris/opencv/modules/imgproc/src/imgwarp.cpp:3492: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize