i have installed opencv-3.0.0 , configured build_extra_modules enable access sift , surf algorithms. wanted run stitching example on 2 jpeg images rotated little bit each other. images own , not standard images (where can find these standard stitching example images, if ?) when proceed execute the
./cpp-example-stitching_detailed source_image1.jpg source_image2.jpg i following error :
opencv error: assertion failed (timelapse) in main, file /path/to/opencv-3.0.0/samples/cpp/stitching_detailed.cpp, line 818 terminate called after throwing instance of 'cv::exception' what(): /path/to/opencv-3.0.0/samples/cpp/stitching_detailed.cpp:818: error: (-215) timelapse in function main aborted (core dumped) and when try go simpler , execute simple ./cpp-example-stitching executable :
./cpp-example-stitching source_image1.jpg source_image2.jpg the output error
pure virtual method called terminate called without active exception aborted (core dumped) if use, following results of running opencv_test_stitching , opencv_perf_stitching
./opencv_test_stitching opencv version: 3.0.0 opencv vcs version: unknown build type: release parallel framework: pthreads cpu features: mmx sse sse2 sse3 opencl disabled [==========] running 5 tests 5 test cases. [----------] global test environment set-up. [----------] 1 test ocl_sphericalwarpertest [ run ] ocl_sphericalwarpertest.mat [ ok ] ocl_sphericalwarpertest.mat (1 ms) [----------] 1 test ocl_sphericalwarpertest (1 ms total) [----------] 1 test ocl_cylindricalwarpertest [ run ] ocl_cylindricalwarpertest.mat [ ok ] ocl_cylindricalwarpertest.mat (0 ms) [----------] 1 test ocl_cylindricalwarpertest (0 ms total) [----------] 1 test ocl_planewarpertest [ run ] ocl_planewarpertest.mat [ ok ] ocl_planewarpertest.mat (1 ms) [----------] 1 test ocl_planewarpertest (1 ms total) [----------] 1 test multibandblender [ run ] multibandblender.canblendtwoimages unknown file: failure c++ exception description "vector::_m_fill_insert" thrown in test body. [ failed ] multibandblender.canblendtwoimages (0 ms) [----------] 1 test multibandblender (0 ms total) [----------] 1 test surffeaturesfinder [ run ] surffeaturesfinder.canfindinrois unknown file: failure c++ exception description "/home/taeten/downloads/opencv_contrib- master/modules/xfeatures2d/src/surf.cpp:892: error: (-215) !_img.empty() && cv_mat_depth(imgtype) == cv_8u && (imgcn == 1 || imgcn == 3 || imgcn == 4) in function detectandcompute " thrown in test body. [ failed ] surffeaturesfinder.canfindinrois (1 ms) [----------] 1 test surffeaturesfinder (1 ms total) [----------] global test environment tear-down [==========] 5 tests 5 test cases ran. (3 ms total) [ passed ] 3 tests. [ failed ] 2 tests, listed below: [ failed ] multibandblender.canblendtwoimages [ failed ] surffeaturesfinder.canfindinrois here's longer output running opencv_perf_stitching :
./opencv_perf_stitching time compensation 0 opencv version: 3.0.0 opencv vcs version: unknown build type: release parallel framework: pthreads cpu features: mmx sse sse2 sse3 opencl disabled [==========] running 33 tests 9 test cases. [----------] global test environment set-up. [----------] 1 test ocl_stitch_a123 [ run ] ocl_stitch_a123.a123/0 /home/taeten/downloads/opencv-3.0.0/modules/ts/src/ts_perf.cpp:1665: failure failed requested file "./stitching/a1.png" not exist. params = "orb" termination reason: aborted performance testing framework bytesin = 0 bytesout = 0 samples = 0 of 100 outliers = 0 frequency = 0 [ failed ] ocl_stitch_a123.a123/0, getparam() = "orb" (0 ms) [----------] 1 test ocl_stitch_a123 (0 ms total) [----------] 1 test ocl_stitch_b12 [ run ] ocl_stitch_b12.b12/0 /home/taeten/downloads/opencv-3.0.0/modules/ts/src/ts_perf.cpp:1665: failure failed requested file "./stitching/b1.png" not exist. params = "orb" termination reason: aborted performance testing framework bytesin = 0 bytesout = 0 samples = 0 of 100 outliers = 0 frequency = 0 [ failed ] ocl_stitch_b12.b12/0, getparam() = "orb" (0 ms) [----------] 1 test ocl_stitch_b12 (0 ms total) [----------] 1 test ocl_stitch_boat [ run ] ocl_stitch_boat.boat/0 /home/taeten/downloads/opencv-3.0.0/modules/ts/src/ts_perf.cpp:1665: failure failed requested file "./stitching/boat1.jpg" not exist. params = "orb" termination reason: aborted performance testing framework bytesin = 0 bytesout = 0 samples = 0 of 100 outliers = 0 frequency = 0 [ failed ] ocl_stitch_boat.boat/0, getparam() = "orb" (0 ms) [----------] 1 test ocl_stitch_boat (0 ms total) [----------] 12 tests ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/0 [ perfstat ] (samples = 10, mean = 11.67, median = 11.57, stddev = 0.25 (2.1%)) [ value ] (640x480, sphericalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/0 (117 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/1 [ perfstat ] (samples = 10, mean = 10.32, median = 10.31, stddev = 0.05 (0.5%)) [ value ] (640x480, cylindricalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/1 (103 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/2 [ perfstat ] (samples = 10, mean = 5.11, median = 5.09, stddev = 0.04 (0.7%)) [ value ] (640x480, planewarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/2 (52 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/3 [ perfstat ] (samples = 10, mean = 46.64, median = 46.15, stddev = 0.85 (1.8%)) [ value ] (1280x720, sphericalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/3 (466 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/4 [ perfstat ] (samples = 10, mean = 41.16, median = 41.12, stddev = 0.13 (0.3%)) [ value ] (1280x720, cylindricalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/4 (412 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/5 [ perfstat ] (samples = 10, mean = 20.38, median = 20.34, stddev = 0.09 (0.4%)) [ value ] (1280x720, planewarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/5 (204 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/6 [ perfstat ] (samples = 10, mean = 104.23, median = 103.85, stddev = 0.91 (0.9%)) [ value ] (1920x1080, sphericalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/6 (1042 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/7 [ perfstat ] (samples = 10, mean = 92.62, median = 92.53, stddev = 0.27 (0.3%)) [ value ] (1920x1080, cylindricalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/7 (927 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/8 [ perfstat ] (samples = 10, mean = 45.97, median = 45.82, stddev = 0.36 (0.8%)) [ value ] (1920x1080, planewarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/8 (460 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/9 [ perfstat ] (samples = 10, mean = 415.69, median = 414.93, stddev = 2.51 (0.6%)) [ value ] (3840x2160, sphericalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/9 (4157 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/10 [ perfstat ] (samples = 10, mean = 370.34, median = 369.69, stddev = 2.09 (0.6%)) [ value ] (3840x2160, cylindricalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/10 (3704 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/11 [ perfstat ] (samples = 10, mean = 184.04, median = 183.20, stddev = 2.34 (1.3%)) [ value ] (3840x2160, planewarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps. stitchingwarpers_buildmaps/11 (1842 ms) [----------] 12 tests ocl_stitchingwarpersfixture_stitchingwarpers_buildmaps (13486 ms total) [----------] 12 tests ocl_stitchingwarpersfixture_stitchingwarpers_warp [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/0 [ perfstat ] (samples = 10, mean = 12.48, median = 12.34, stddev = 0.33 (2.7%)) [ value ] (640x480, sphericalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/0 (125 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/1 [ perfstat ] (samples = 10, mean = 11.22, median = 11.14, stddev = 0.17 (1.5%)) [ value ] (640x480, cylindricalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/1 (112 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/2 [ perfstat ] (samples = 13, mean = 5.88, median = 5.87, stddev = 0.03 (0.5%)) [ value ] (640x480, planewarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/2 (78 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/3 [ perfstat ] (samples = 10, mean = 49.28, median = 49.25, stddev = 0.10 (0.2%)) [ value ] (1280x720, sphericalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/3 (493 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/4 [ perfstat ] (samples = 10, mean = 44.59, median = 44.47, stddev = 0.29 (0.7%)) [ value ] (1280x720, cylindricalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/4 (446 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/5 [ perfstat ] (samples = 10, mean = 23.65, median = 23.63, stddev = 0.05 (0.2%)) [ value ] (1280x720, planewarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/5 (237 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/6 [ perfstat ] (samples = 10, mean = 110.46, median = 110.13, stddev = 0.60 (0.5%)) [ value ] (1920x1080, sphericalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/6 (1105 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/7 [ perfstat ] (samples = 10, mean = 99.67, median = 99.51, stddev = 0.41 (0.4%)) [ value ] (1920x1080, cylindricalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/7 (998 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/8 [ perfstat ] (samples = 10, mean = 53.08, median = 53.04, stddev = 0.31 (0.6%)) [ value ] (1920x1080, planewarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp.stitchingwarpers_warp/8 (531 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/9 [ perfstat ] (samples = 10, mean = 447.03, median = 446.33, stddev = 1.87 (0.4%)) [ value ] (3840x2160, sphericalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/9 (4472 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/10 [ perfstat ] (samples = 10, mean = 403.88, median = 403.82, stddev = 0.40 (0.1%)) [ value ] (3840x2160, cylindricalwarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/10 (4041 ms) [ run ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/11 [ perfstat ] (samples = 10, mean = 219.04, median = 219.16, stddev = 0.87 (0.4%)) [ value ] (3840x2160, planewarpertype) [ ok ] ocl_stitchingwarpersfixture_stitchingwarpers_warp. stitchingwarpers_warp/11 (2192 ms) [----------] 12 tests ocl_stitchingwarpersfixture_stitchingwarpers_warp (14830 ms total) [----------] 1 test stitch_a123 [ run ] stitch_a123.a123/0 /home/taeten/downloads/opencv-3.0.0/modules/ts/src/ts_perf.cpp:1665: failure failed requested file "./stitching/a1.png" not exist. params = "orb" termination reason: aborted performance testing framework bytesin = 0 bytesout = 0 samples = 0 of 100 outliers = 0 frequency = 0 [ failed ] stitch_a123.a123/0, getparam() = "orb" (0 ms) [----------] 1 test stitch_a123 (0 ms total) [----------] 1 test stitch_b12 [ run ] stitch_b12.b12/0 /home/taeten/downloads/opencv-3.0.0/modules/ts/src/ts_perf.cpp:1665: failure failed requested file "./stitching/b1.png" not exist. params = "orb" termination reason: aborted performance testing framework bytesin = 0 bytesout = 0 samples = 0 of 100 outliers = 0 frequency = 0 [ failed ] stitch_b12.b12/0, getparam() = "orb" (0 ms) [----------] 1 test stitch_b12 (0 ms total) [----------] 1 test match_bestof2nearest [ run ] match_bestof2nearest.bestof2nearest/0 /home/taeten/downloads/opencv-3.0.0/modules/ts/src/ts_perf.cpp:1665: failure failed requested file "./stitching/b1.png" not exist. params = "orb" termination reason: aborted performance testing framework bytesin = 0 bytesout = 0 samples = 0 of 100 outliers = 0 frequency = 0 [ failed ] match_bestof2nearest.bestof2nearest/0, getparam() = "orb" (0 ms) [----------] 1 test match_bestof2nearest (0 ms total) [----------] 3 tests matchvector_bestof2nearestvectorfeatures [ run ] matchvector_bestof2nearestvectorfeatures.bestof2nearestvectorfeatures/0 /home/taeten/downloads/opencv-3.0.0/modules/ts/src/ts_perf.cpp:1665: failure failed requested file "./stitching/b1.png" not exist. params = ("orb", 2) termination reason: aborted performance testing framework bytesin = 0 bytesout = 0 samples = 0 of 100 outliers = 0 frequency = 0 [ failed ] matchvector_bestof2nearestvectorfeatures.bestof2nearestvectorfeatures/0, getparam() = ("orb", 2) (0 ms) [ run ] matchvector_bestof2nearestvectorfeatures.bestof2nearestvectorfeatures/1 /home/taeten/downloads/opencv-3.0.0/modules/ts/src/ts_perf.cpp:1665: failure failed requested file "./stitching/b1.png" not exist. params = ("orb", 4) termination reason: aborted performance testing framework bytesin = 0 bytesout = 0 samples = 0 of 100 outliers = 0 frequency = 0 [ failed ] matchvector_bestof2nearestvectorfeatures.bestof2nearestvectorfeatures/1, getparam() = ("orb", 4) (0 ms) [ run ] matchvector_bestof2nearestvectorfeatures.bestof2nearestvectorfeatures/2 /home/taeten/downloads/opencv-3.0.0/modules/ts/src/ts_perf.cpp:1665: failure failed requested file "./stitching/b1.png" not exist. params = ("orb", 8) termination reason: aborted performance testing framework bytesin = 0 bytesout = 0 samples = 0 of 100 outliers = 0 frequency = 0 [ failed ] matchvector_bestof2nearestvectorfeatures.bestof2nearestvectorfeatures/2, getparam() = ("orb", 8) (0 ms) [----------] 3 tests matchvector_bestof2nearestvectorfeatures (0 ms total) [----------] global test environment tear-down [==========] 33 tests 9 test cases ran. (28316 ms total) [ passed ] 24 tests. [ failed ] 9 tests, listed below: [ failed ] ocl_stitch_a123.a123/0, getparam() = "orb" [ failed ] ocl_stitch_b12.b12/0, getparam() = "orb" [ failed ] ocl_stitch_boat.boat/0, getparam() = "orb" [ failed ] stitch_a123.a123/0, getparam() = "orb" [ failed ] stitch_b12.b12/0, getparam() = "orb" [ failed ] match_bestof2nearest.bestof2nearest/0, getparam() = "orb" [ failed ] matchvector_bestof2nearestvectorfeatures.bestof2nearestvectorfeatures/0, getparam() = ("orb", 2) [ failed ] matchvector_bestof2nearestvectorfeatures.bestof2nearestvectorfeatures/1, getparam() = ("orb", 4) [ failed ] matchvector_bestof2nearestvectorfeatures.bestof2nearestvectorfeatures/2, getparam() = ("orb", 8) 9 failed tests
Comments
Post a Comment