From 69ac21f8116ca22d878e13941f4c67da2134e404 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Fri, 13 Sep 2024 14:22:54 -0700 Subject: [PATCH] Adding OpenCV's GPU GFTT/ OpticalFlow and CudaSift support (#1330) * Adding GFTT and SIFT Cuda support * Working CudaSift * Disable cudasift option when not available * Added check to avoid re-allocating gpu memory everytime parseParameters is called. Added workaround of to detect/ignore invalid descriptors * Added SIFT/PreciseUpscale and SIFT/Upscale parameters. Adjusted max octave to behave more like opencv * Refactored how maximum features are thresholded, to be more similar to OpenCV version * Updated loop closure benchmark scripts * Cuda optical flow tmp commit * Added Stereo/Gpu Vis/CorFlowGpu parameters (optical flow gpu integration for F2F odom and stereo correspondences) * Fixed build without opencv cuda * Fixed build with Opencv 4.10 * ZED: updated parameters to match zed sdk 4 * MRPT requires C++17 * updated max octave limit CudaSift --- CMakeLists.txt | 23 +- Version.h.in | 1 + .../{ => Bayes}/RecursiveBayes.m | 0 .../{ => Bayes}/adjustLikelihood.m | 0 .../{ => Bayes}/computeLikelihood.m | 0 .../{ => Bayes}/generatePrediction.m | 0 .../{ => Bayes}/updateCommonSignature.m | 0 .../{ => Bayes}/updateDictionary.m | 0 archive/2010-LoopClosure/DumpMemorySign.txt | 86 -- .../ShowLogs/precisionRecallAllDetectors.m | 56 ++ archive/2010-LoopClosure/ShowLogs/showlogs.m | 7 +- archive/2010-LoopClosure/run_all.sh | 8 - archive/2010-LoopClosure/run_all_datasets.sh | 29 + archive/2010-LoopClosure/run_all_detectors.sh | 37 + archive/2010-LoopClosure/run_bow.sh | 29 +- corelib/include/rtabmap/core/Features2d.h | 26 +- corelib/include/rtabmap/core/Parameters.h | 14 +- .../include/rtabmap/core/RegistrationVis.h | 1 + corelib/include/rtabmap/core/SensorData.h | 15 + corelib/include/rtabmap/core/Stereo.h | 24 + .../rtabmap/core/camera/CameraStereoZed.h | 2 +- corelib/src/CMakeLists.txt | 8 + corelib/src/Features2d.cpp | 330 ++++++- corelib/src/Parameters.cpp | 9 + corelib/src/RegistrationVis.cpp | 118 ++- corelib/src/Stereo.cpp | 126 ++- corelib/src/camera/CameraStereoZed.cpp | 30 +- examples/RGBDMapping/MapBuilder.h | 2 + examples/RGBDMapping/main.cpp | 2 +- examples/WifiMapping/MapBuilder.h | 2 + examples/WifiMapping/main.cpp | 2 +- guilib/src/AboutDialog.cpp | 14 + guilib/src/OdometryViewer.cpp | 15 +- guilib/src/PreferencesDialog.cpp | 45 +- guilib/src/ui/aboutDialog.ui | 926 ++++++++++-------- guilib/src/ui/preferencesDialog.ui | 623 +++++++----- tools/OdometryViewer/main.cpp | 2 +- 37 files changed, 1745 insertions(+), 867 deletions(-) rename archive/2010-LoopClosure/{ => Bayes}/RecursiveBayes.m (100%) rename archive/2010-LoopClosure/{ => Bayes}/adjustLikelihood.m (100%) rename archive/2010-LoopClosure/{ => Bayes}/computeLikelihood.m (100%) rename archive/2010-LoopClosure/{ => Bayes}/generatePrediction.m (100%) rename archive/2010-LoopClosure/{ => Bayes}/updateCommonSignature.m (100%) rename archive/2010-LoopClosure/{ => Bayes}/updateDictionary.m (100%) delete mode 100644 archive/2010-LoopClosure/DumpMemorySign.txt create mode 100644 archive/2010-LoopClosure/ShowLogs/precisionRecallAllDetectors.m delete mode 100755 archive/2010-LoopClosure/run_all.sh create mode 100755 archive/2010-LoopClosure/run_all_datasets.sh create mode 100755 archive/2010-LoopClosure/run_all_detectors.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index e0305cc615..b9afa1667b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,6 +177,7 @@ option(WITH_TORCH "Include Torch support (SuperPoint)" OFF) option(WITH_PYTHON "Include Python3 support (PyMatcher, PyDetector)" OFF) option(WITH_PYTHON_THREADING "Use more than one Python interpreter." OFF) option(WITH_PDAL "Include PDAL support" ON) +option(WITH_CUDASIFT "Include CudaSift support (this fork https://github.com/matlabbe/CudaSift)" OFF) option(WITH_FREENECT "Include Freenect support" ON) option(WITH_FREENECT2 "Include Freenect2 support" ON) option(WITH_K4W2 "Include Kinect for Windows v2 support" ON) @@ -232,7 +233,7 @@ option(BUILD_WITH_RPATH_NOT_RUNPATH "Explicitly disable usage of RUNPATH for the set(RTABMAP_QT_VERSION AUTO CACHE STRING "Force a specific Qt version.") set_property(CACHE RTABMAP_QT_VERSION PROPERTY STRINGS AUTO 4 5 6) -FIND_PACKAGE(OpenCV REQUIRED QUIET COMPONENTS core calib3d imgproc highgui stitching photo video videoio OPTIONAL_COMPONENTS aruco objdetect xfeatures2d nonfree gpu cudafeatures2d) +FIND_PACKAGE(OpenCV REQUIRED QUIET COMPONENTS core calib3d imgproc highgui stitching photo video videoio OPTIONAL_COMPONENTS aruco objdetect xfeatures2d nonfree gpu cudafeatures2d cudaoptflow cudaimgproc) IF(WITH_QT) FIND_PACKAGE(PCL 1.7 REQUIRED QUIET COMPONENTS common io kdtree search surface filters registration sample_consensus segmentation visualization) @@ -415,6 +416,13 @@ IF(WITH_PDAL) ENDIF(PDAL_FOUND) ENDIF(WITH_PDAL) +IF(WITH_CUDASIFT) + FIND_PACKAGE(CudaSift 3 QUIET) + IF(CudaSift_FOUND) + MESSAGE(STATUS "Found CudaSift") + ENDIF(CudaSift_FOUND) +ENDIF(WITH_CUDASIFT) + IF(WITH_FREENECT) FIND_PACKAGE(Freenect QUIET) IF(Freenect_FOUND) @@ -813,7 +821,7 @@ IF(NOT (APPLE OR WIN32) AND BUILD_WITH_RPATH_NOT_RUNPATH) ENDIF() IF(NOT MSVC) - IF(Qt6_FOUND OR (G2O_FOUND AND G2O_CPP11 EQUAL 1) OR TORCH_FOUND) + IF(Qt6_FOUND OR (G2O_FOUND AND G2O_CPP11 EQUAL 1) OR TORCH_FOUND OR MRPT_FOUND) # Qt6 requires c++17 include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17) @@ -942,6 +950,9 @@ ENDIF(NOT opengv_FOUND OR NOT WITH_OPENGV) IF(NOT PDAL_FOUND) SET(PDAL "//") ENDIF(NOT PDAL_FOUND) +IF(NOT CudaSift_FOUND) + SET(CUDASIFT "//") +ENDIF(NOT CudaSift_FOUND) IF(NOT loam_velodyne_FOUND) SET(LOAM "//") ENDIF(NOT loam_velodyne_FOUND) @@ -1416,6 +1427,14 @@ ELSE() MESSAGE(STATUS " With PDAL = NO (PDAL not found)") ENDIF() +IF(CudaSift_FOUND) +MESSAGE(STATUS " With CudaSift = YES (License: MIT)") +ELSEIF(NOT WITH_CUDASIFT) +MESSAGE(STATUS " With CudaSift = NO (WITH_CUDASIFT=OFF)") +ELSE() +MESSAGE(STATUS " With CudaSift = NO (CudaSift not found, use https://github.com/matlabbe/CudaSift fork)") +ENDIF() + MESSAGE(STATUS "") MESSAGE(STATUS " Solvers:") IF(WITH_TORO) diff --git a/Version.h.in b/Version.h.in index 376291f23b..b2b9b3e89d 100644 --- a/Version.h.in +++ b/Version.h.in @@ -58,6 +58,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @FASTCV@#define RTABMAP_FASTCV @OPENGV@#define RTABMAP_OPENGV @PDAL@#define RTABMAP_PDAL +@CUDASIFT@#define RTABMAP_CUDASIFT @LOAM@#define RTABMAP_LOAM @FLOAM@#define RTABMAP_FLOAM @DC1394@#define RTABMAP_DC1394 diff --git a/archive/2010-LoopClosure/RecursiveBayes.m b/archive/2010-LoopClosure/Bayes/RecursiveBayes.m similarity index 100% rename from archive/2010-LoopClosure/RecursiveBayes.m rename to archive/2010-LoopClosure/Bayes/RecursiveBayes.m diff --git a/archive/2010-LoopClosure/adjustLikelihood.m b/archive/2010-LoopClosure/Bayes/adjustLikelihood.m similarity index 100% rename from archive/2010-LoopClosure/adjustLikelihood.m rename to archive/2010-LoopClosure/Bayes/adjustLikelihood.m diff --git a/archive/2010-LoopClosure/computeLikelihood.m b/archive/2010-LoopClosure/Bayes/computeLikelihood.m similarity index 100% rename from archive/2010-LoopClosure/computeLikelihood.m rename to archive/2010-LoopClosure/Bayes/computeLikelihood.m diff --git a/archive/2010-LoopClosure/generatePrediction.m b/archive/2010-LoopClosure/Bayes/generatePrediction.m similarity index 100% rename from archive/2010-LoopClosure/generatePrediction.m rename to archive/2010-LoopClosure/Bayes/generatePrediction.m diff --git a/archive/2010-LoopClosure/updateCommonSignature.m b/archive/2010-LoopClosure/Bayes/updateCommonSignature.m similarity index 100% rename from archive/2010-LoopClosure/updateCommonSignature.m rename to archive/2010-LoopClosure/Bayes/updateCommonSignature.m diff --git a/archive/2010-LoopClosure/updateDictionary.m b/archive/2010-LoopClosure/Bayes/updateDictionary.m similarity index 100% rename from archive/2010-LoopClosure/updateDictionary.m rename to archive/2010-LoopClosure/Bayes/updateDictionary.m diff --git a/archive/2010-LoopClosure/DumpMemorySign.txt b/archive/2010-LoopClosure/DumpMemorySign.txt deleted file mode 100644 index 75ac829bef..0000000000 --- a/archive/2010-LoopClosure/DumpMemorySign.txt +++ /dev/null @@ -1,86 +0,0 @@ -SignatureID WordsID... --1 4 5 21 22 24 31 32 33 35 46 48 49 58 60 63 72 73 78 83 84 103 105 114 120 124 133 136 141 162 179 182 188 189 202 204 211 217 218 227 232 241 247 249 260 268 271 287 289 301 304 318 320 324 338 340 345 346 349 358 366 368 370 371 381 395 407 408 414 415 416 424 439 442 447 502 504 508 509 527 539 540 550 553 558 568 572 583 588 598 606 617 624 625 638 652 653 667 674 693 694 699 702 738 755 770 782 784 793 816 818 819 832 836 842 846 847 858 867 868 923 939 954 955 965 987 1027 1030 1034 1083 1087 1097 1098 1177 1187 1199 1200 1214 1241 1258 1259 1270 1303 1339 1351 1388 1451 1501 1515 1526 1630 1679 1680 1771 1841 1868 2014 2243 2400 2494 2591 2957 3075 3079 3194 -1 1 2 2 3 4 4 4 5 6 7 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 24 24 25 26 27 28 29 30 31 31 32 33 34 34 35 35 36 37 38 39 40 41 42 43 44 44 45 46 47 48 49 49 50 51 52 53 53 54 55 56 57 58 59 59 60 60 60 61 62 63 64 65 66 67 68 69 70 70 71 72 73 74 75 76 77 78 79 80 81 82 83 83 83 84 85 86 86 87 88 89 90 91 92 93 94 95 96 97 98 99 99 100 101 102 103 104 -2 4 4 4 4 4 4 5 7 7 7 12 14 18 19 21 22 26 28 29 29 31 32 33 35 37 48 49 49 51 51 53 54 55 56 56 57 58 58 59 60 60 60 63 65 66 67 70 73 75 77 77 77 78 78 82 84 84 84 84 92 94 94 96 96 99 103 105 105 106 107 108 109 110 111 112 113 114 115 116 116 117 118 118 119 120 120 121 122 123 124 125 126 127 128 129 130 131 132 133 133 133 134 135 136 137 138 139 140 141 141 142 143 144 145 146 147 148 149 150 151 151 152 152 153 154 155 156 156 157 158 159 160 161 161 162 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 189 189 190 191 192 193 194 195 196 197 198 199 200 201 202 202 203 204 204 205 -3 4 4 5 12 12 19 21 22 23 28 28 29 32 32 33 33 44 46 48 48 49 52 53 55 56 58 59 60 60 65 65 67 71 72 72 73 78 84 96 96 97 103 105 105 123 124 124 133 136 136 136 139 139 141 141 141 142 143 144 148 162 167 167 182 188 189 189 202 206 207 208 209 210 210 211 212 213 214 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 247 248 249 249 250 251 252 253 254 255 255 256 257 258 259 260 261 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 287 288 289 290 291 292 293 294 295 296 296 297 298 298 299 300 301 302 303 303 304 305 306 306 307 307 308 309 310 311 -4 4 5 18 21 21 22 24 24 32 33 35 42 44 46 46 46 46 49 65 67 68 68 70 70 72 72 72 83 84 95 96 96 103 120 130 135 136 136 136 136 139 142 143 143 153 156 162 177 179 179 182 189 189 189 189 189 189 202 202 204 217 217 218 218 227 227 228 228 230 230 232 246 247 249 249 255 268 271 271 275 276 276 284 287 290 312 313 314 315 316 317 318 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 338 339 340 341 342 343 344 345 346 347 348 349 349 350 351 352 352 353 354 354 355 356 357 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 408 409 410 411 412 413 -5 4 5 24 25 31 32 33 42 45 45 48 48 67 70 84 105 114 120 120 120 130 133 179 189 202 202 217 217 217 217 217 217 217 217 232 268 270 271 318 324 338 345 346 349 349 354 355 356 362 366 366 407 414 414 415 416 417 418 418 419 420 421 422 423 423 424 424 425 425 426 427 428 429 429 430 431 432 433 433 434 435 436 436 437 438 439 439 440 441 442 443 444 445 446 447 448 449 450 451 451 452 453 454 455 456 457 458 459 460 -6 4 4 4 4 21 22 24 24 25 31 31 31 31 31 31 32 33 45 48 64 64 72 72 72 84 95 105 114 114 114 120 122 130 136 156 189 189 189 189 189 189 202 202 208 213 217 217 217 227 232 243 271 280 287 312 320 320 320 324 324 340 345 345 358 366 366 366 366 407 414 416 416 416 416 421 423 424 426 436 439 439 439 439 439 439 442 447 457 457 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 497 498 498 499 499 500 501 501 502 502 503 504 504 505 505 506 507 508 509 510 511 512 513 514 515 516 517 518 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 536 537 537 538 539 540 541 542 543 544 545 546 547 548 549 550 550 551 552 553 554 555 556 557 558 559 -7 30 31 31 31 31 32 32 32 33 33 39 46 48 53 58 58 58 78 78 182 188 218 228 236 249 304 318 318 318 318 346 358 366 368 368 408 410 414 429 431 447 447 453 453 473 499 508 527 539 550 550 553 560 561 562 563 564 565 565 566 567 568 569 570 571 572 572 573 574 575 576 577 578 578 579 580 581 582 582 583 584 585 586 587 588 588 589 590 590 591 592 593 594 595 596 597 598 599 600 601 602 603 603 604 605 606 607 607 608 609 610 611 612 613 614 614 615 616 617 617 618 619 620 621 621 622 623 624 625 625 626 627 628 629 630 631 632 632 633 634 635 636 637 638 638 639 640 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 654 655 656 657 658 658 659 660 661 661 662 663 664 665 666 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 -8 24 31 31 32 33 33 33 58 78 84 217 217 237 312 312 338 338 338 340 366 366 366 442 453 453 508 519 519 527 539 565 565 566 567 568 568 568 573 575 578 581 583 588 588 590 592 597 597 598 599 603 606 611 612 613 624 626 634 638 638 647 649 652 652 652 660 663 664 684 685 686 687 688 689 690 691 692 693 694 695 696 697 697 698 699 699 700 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 729 730 731 732 733 734 735 736 737 -9 4 4 4 30 31 31 33 64 72 78 84 84 84 207 217 217 217 217 217 217 217 217 217 217 217 217 237 253 257 260 271 271 271 304 318 346 366 417 442 480 503 508 519 539 550 553 553 566 578 581 583 588 590 590 594 606 607 610 612 617 621 625 634 634 638 638 638 652 653 654 657 660 664 664 688 690 691 696 697 702 702 706 706 706 708 708 711 715 723 730 732 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 793 794 795 796 797 798 799 800 801 802 803 804 804 805 806 806 807 808 809 810 811 -10 4 4 4 4 4 5 21 31 31 31 32 32 32 32 53 58 58 72 72 72 72 84 178 178 189 189 202 202 207 207 217 217 217 217 218 249 249 289 320 320 368 370 384 395 407 499 502 502 504 508 522 522 523 527 536 539 548 550 550 553 553 558 558 558 563 574 583 583 588 590 602 602 608 608 624 626 638 644 646 654 664 684 693 704 706 710 711 715 750 754 755 770 770 770 774 780 780 782 782 801 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 887 888 889 890 891 891 892 893 893 894 895 896 897 898 898 899 900 901 902 903 904 -11 4 4 4 32 58 58 58 63 78 114 114 120 120 189 189 189 207 217 223 223 236 243 249 249 318 338 345 345 345 346 349 431 442 502 502 504 504 509 522 527 558 568 568 573 585 588 588 590 590 591 592 594 598 598 598 602 619 619 625 644 652 664 669 678 691 697 697 702 770 770 786 794 812 812 817 817 818 818 819 824 826 832 834 839 843 846 851 853 856 856 859 860 862 865 866 872 880 905 906 907 908 909 910 911 912 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 -12 4 5 24 24 24 31 32 32 32 32 32 33 33 33 46 63 72 78 120 120 120 124 136 136 162 182 189 189 217 217 217 237 237 249 249 249 249 253 271 370 370 370 395 415 416 502 502 502 502 502 514 531 536 540 540 540 540 553 553 558 568 580 585 588 606 625 638 653 664 684 693 693 699 702 714 726 731 755 755 755 755 755 770 786 793 793 794 794 810 810 818 824 832 834 836 842 846 846 851 883 883 883 883 893 898 898 901 916 916 922 923 929 931 932 935 939 941 943 953 954 955 956 957 958 958 958 959 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1013 1014 1015 -13 4 4 4 4 4 4 4 4 24 32 32 35 63 78 83 83 84 84 105 105 114 120 165 188 188 189 204 210 211 223 227 237 247 247 249 249 249 249 249 260 260 289 289 317 325 338 384 405 414 432 439 439 447 463 502 502 502 502 502 502 502 504 509 540 544 544 550 558 568 568 588 593 604 606 606 606 607 617 625 634 653 653 693 712 750 754 755 782 786 794 804 805 810 812 818 836 836 845 846 846 846 847 849 852 868 893 896 915 918 939 943 955 958 965 965 965 974 974 979 986 989 989 997 1000 1002 1016 1017 1018 1019 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 -14 4 4 11 31 31 32 32 32 32 32 33 33 46 46 48 72 72 72 72 72 78 83 95 105 120 120 120 120 120 133 193 210 210 211 211 213 217 217 217 217 218 221 237 249 270 304 320 320 324 325 326 346 349 349 356 405 405 407 424 431 431 439 442 502 502 502 502 527 537 543 544 553 553 558 572 574 579 585 588 588 598 617 625 644 662 674 693 699 742 749 751 755 755 782 836 836 842 842 842 846 851 856 858 867 916 925 943 958 961 1001 1001 1001 1032 1035 1035 1052 1060 1082 1085 1087 1088 1089 1090 1091 1092 1093 1093 1094 1095 1096 1097 1098 1098 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1107 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1140 1141 1142 1143 1144 1145 1146 -15 4 4 7 32 32 32 72 72 72 83 83 84 114 114 120 120 120 120 124 147 162 202 202 218 218 218 228 249 289 298 304 320 320 320 320 324 345 366 366 370 407 412 415 424 439 500 500 502 514 522 546 546 583 585 588 644 644 653 662 668 674 684 702 706 706 782 782 793 793 794 824 836 836 847 867 883 883 901 916 955 959 965 989 1003 1022 1027 1028 1030 1034 1034 1039 1060 1087 1087 1097 1099 1099 1103 1109 1114 1114 1120 1133 1140 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1164 1165 1166 1167 1168 1169 1170 1171 1171 1172 1173 1174 1175 1175 1176 1177 1177 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 -16 4 4 32 33 114 120 370 370 381 439 506 522 527 527 568 588 598 606 606 606 622 653 693 702 706 836 867 901 916 959 964 1019 1025 1097 1097 1177 1177 1177 1192 1193 1193 1202 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 -17 2 2 4 4 4 4 4 4 4 4 4 24 24 31 31 31 31 31 45 45 68 72 72 72 73 84 182 189 189 189 202 211 211 217 217 217 217 217 217 218 218 218 218 218 271 271 271 276 346 370 370 370 370 370 370 403 415 416 527 539 539 539 550 550 550 553 553 553 553 553 553 553 558 558 558 558 558 558 558 568 568 568 606 606 607 674 674 702 738 755 769 782 782 782 787 847 858 858 858 858 867 954 955 965 1087 1087 1087 1087 1087 1087 1087 1087 1087 1087 1087 1098 1149 1219 1223 1226 1233 1235 1236 1236 1236 1237 1238 1239 1240 1241 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 -18 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 22 22 24 24 31 31 33 45 46 46 68 72 72 84 133 133 133 136 179 189 189 189 189 189 189 189 189 202 202 202 207 207 211 211 217 218 218 218 227 268 271 271 289 370 370 370 370 370 370 370 370 370 415 416 416 429 463 504 504 504 510 539 539 550 550 550 553 553 553 553 553 553 553 553 558 558 558 558 558 558 558 558 559 568 568 568 568 588 588 607 607 755 755 755 755 755 782 782 782 908 919 919 954 954 954 954 954 954 954 954 954 954 954 954 955 1087 1087 1087 1087 1087 1087 1087 1087 1087 1149 1149 1155 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1250 1258 1258 1259 1267 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 -19 -20 35 46 58 58 72 73 98 105 117 120 120 133 133 133 136 141 141 156 162 182 202 204 204 209 213 260 270 289 318 337 340 358 372 373 405 496 508 540 553 553 568 583 592 653 684 699 713 738 784 786 845 858 858 867 874 885 893 1029 1034 1061 1098 1098 1098 1111 1133 1155 1187 1187 1214 1219 1228 1283 1304 1305 1306 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1319 1320 1321 1322 1323 1323 1324 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1366 1367 1368 1369 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1388 1389 1390 1391 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 -21 33 45 48 48 56 133 162 165 204 270 325 338 340 340 366 370 370 371 433 434 553 558 572 572 572 583 583 784 806 842 845 847 852 925 979 1083 1177 1181 1187 1219 1256 1256 1290 1307 1331 1333 1339 1342 1342 1345 1352 1358 1367 1369 1378 1379 1381 1392 1392 1410 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1440 1441 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1475 1476 -22 4 4 4 4 4 4 4 4 21 22 32 53 67 73 95 133 133 133 133 179 182 211 217 217 218 218 219 287 310 366 414 496 502 502 502 504 527 527 539 544 550 553 572 572 622 699 706 784 793 836 842 845 845 852 867 867 867 958 965 974 980 1030 1049 1087 1087 1088 1098 1153 1181 1187 1214 1214 1219 1219 1222 1256 1271 1283 1305 1310 1315 1339 1340 1342 1342 1350 1351 1369 1370 1370 1385 1388 1395 1450 1451 1451 1451 1463 1467 1477 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 -23 4 4 4 24 72 72 84 120 120 120 133 136 189 189 210 217 217 217 217 218 236 289 304 320 320 320 320 340 346 347 349 349 508 527 539 550 553 558 563 568 592 618 693 739 782 782 782 816 835 847 867 867 867 867 867 901 923 924 1018 1024 1047 1102 1153 1177 1181 1181 1199 1235 1241 1241 1246 1256 1257 1258 1270 1303 1304 1310 1326 1340 1340 1343 1350 1351 1351 1351 1371 1395 1432 1463 1487 1488 1490 1503 1511 1512 1515 1515 1526 1544 1568 1569 1570 1571 1572 1573 1574 1575 1576 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 -24 4 21 31 32 33 72 72 73 133 189 217 218 227 243 285 320 327 338 340 346 346 366 368 368 370 370 370 370 376 416 417 424 424 430 438 504 504 537 550 550 553 558 568 572 606 606 655 684 786 842 867 867 903 903 954 965 1030 1087 1087 1098 1170 1200 1200 1214 1218 1223 1223 1228 1246 1246 1258 1258 1270 1310 1322 1336 1343 1351 1370 1370 1463 1463 1488 1492 1513 1515 1518 1533 1545 1586 1589 1594 1597 1615 1621 1623 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1643 1644 1645 1646 1646 1646 1647 1648 1649 1650 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 -25 4 4 31 32 72 72 73 73 133 217 217 217 218 271 320 403 539 550 558 702 755 858 858 867 867 903 965 1073 1237 1241 1241 1241 1256 1336 1340 1351 1351 1370 1391 1426 1462 1463 1487 1533 1558 1560 1594 1671 1680 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1707 1708 1709 1710 1711 1712 -26 22 31 32 39 56 58 78 84 105 133 136 141 142 162 182 182 210 219 241 247 249 256 260 318 324 345 358 366 403 416 506 506 509 568 572 572 598 626 642 653 674 674 691 751 793 819 847 868 918 923 923 978 980 987 1039 1082 1119 1155 1182 1199 1203 1206 1303 1345 1368 1368 1388 1388 1392 1398 1406 1415 1441 1477 1521 1521 1557 1575 1630 1646 1651 1704 1713 1714 1715 1716 1717 1718 1719 1719 1720 1721 1722 1723 1724 1725 1726 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1748 1749 1750 1751 1752 1753 1754 1755 1756 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1765 1766 1767 1767 1768 1769 1770 1771 1771 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 -27 32 32 33 35 35 38 58 58 78 78 81 84 89 114 124 124 162 168 182 182 182 202 204 211 211 223 241 249 249 249 259 296 320 320 325 345 346 366 366 366 366 370 395 417 428 433 500 510 527 553 572 598 598 619 626 653 654 675 699 702 702 704 755 805 818 832 842 864 923 955 987 987 987 990 1001 1088 1200 1200 1352 1368 1388 1388 1415 1415 1515 1515 1529 1672 1680 1692 1713 1720 1722 1733 1738 1743 1747 1748 1750 1755 1759 1763 1763 1764 1765 1766 1766 1766 1768 1771 1771 1771 1771 1771 1771 1775 1776 1777 1778 1779 1779 1785 1789 1790 1793 1794 1809 1815 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1893 1894 1895 1896 1897 1898 1899 1900 1901 -28 22 35 58 78 78 133 168 182 204 241 243 249 249 260 324 346 354 366 366 371 372 414 429 447 504 536 538 553 553 558 572 572 594 622 625 637 653 653 654 679 694 699 702 702 704 704 706 706 713 738 818 819 819 832 848 922 923 923 923 925 954 954 965 987 987 1034 1059 1059 1087 1087 1127 1129 1155 1165 1183 1187 1226 1241 1301 1303 1342 1374 1406 1415 1444 1509 1518 1518 1538 1630 1696 1713 1718 1722 1728 1729 1738 1753 1763 1765 1771 1771 1771 1771 1771 1774 1789 1832 1833 1836 1841 1844 1862 1873 1883 1902 1903 1904 1905 1905 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1934 1935 1936 1937 1938 1939 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 -29 4 31 31 31 33 33 58 58 78 133 133 162 179 241 249 260 346 349 370 408 429 527 568 592 621 622 624 625 652 662 699 699 704 753 816 819 819 832 832 868 923 1083 1087 1155 1174 1303 1543 1543 1680 1714 1718 1718 1738 1743 1771 1771 1800 1800 1829 1830 1833 1835 1836 1841 1844 1868 1873 1877 1884 1889 1904 1916 1936 1957 1961 1971 1976 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 -30 31 32 33 33 58 76 83 144 162 204 210 219 221 230 320 340 345 345 347 366 395 403 429 527 540 540 543 548 553 553 583 594 622 652 652 653 662 694 699 709 709 744 753 782 832 858 923 923 923 923 934 954 1003 1026 1083 1083 1088 1111 1174 1290 1303 1303 1360 1521 1630 1651 1725 1738 1763 1771 1779 1787 1788 1799 1838 1852 1856 1871 1873 1874 1883 1902 1902 1903 1915 1916 1930 1931 1941 1961 1975 1997 1998 2014 2014 2015 2015 2015 2029 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 -31 4 7 7 31 31 32 33 33 48 78 78 89 114 133 147 162 182 208 211 241 260 296 315 345 381 395 403 439 494 498 543 553 563 619 623 624 699 704 707 895 923 923 978 978 990 1052 1174 1195 1199 1303 1518 1519 1566 1630 1630 1680 1721 1723 1731 1738 1743 1750 1848 1856 1868 1900 1902 1953 1957 1962 1963 1973 1987 1987 1993 2010 2033 2051 2052 2058 2061 2067 2069 2106 2147 2151 2152 2153 2154 2155 2156 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2209 2210 2211 2212 2213 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 -32 32 32 33 33 48 58 63 78 95 133 253 275 301 354 371 395 405 495 597 662 699 699 707 707 738 778 784 793 805 818 867 899 923 1027 1027 1034 1103 1103 1144 1200 1237 1529 1692 1714 1743 1743 1749 1750 1753 1768 1817 1841 1843 1878 1993 2047 2054 2054 2061 2067 2067 2067 2067 2101 2113 2116 2139 2152 2156 2159 2165 2167 2168 2171 2190 2190 2201 2208 2221 2233 2248 2261 2262 2263 2264 2264 2265 2265 2266 2267 2268 2269 2269 2270 2271 2272 2273 2274 2275 2276 2277 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2299 2300 2301 2302 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2316 2317 2318 2319 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 -33 33 48 58 78 78 114 118 162 167 182 182 193 202 202 204 221 226 249 249 257 261 274 287 287 345 346 368 408 412 457 504 506 576 592 624 653 697 699 699 771 818 832 847 923 923 1003 1103 1175 1199 1200 1202 1223 1370 1519 1696 1723 1723 1750 1771 1777 1848 1903 1929 1935 2014 2030 2053 2061 2072 2151 2152 2152 2153 2168 2168 2221 2243 2247 2262 2263 2264 2288 2291 2293 2293 2303 2323 2333 2335 2340 2352 2370 2371 2372 2373 2374 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2451 2452 2453 2454 2455 2456 2457 2458 2459 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 -34 31 32 32 33 35 35 44 58 58 67 67 70 78 78 83 96 115 136 136 162 182 182 202 202 202 202 217 230 237 249 320 324 340 345 346 366 397 405 414 504 519 540 572 576 593 597 622 625 669 694 694 699 790 815 815 832 835 920 923 923 954 1042 1098 1102 1110 1129 1199 1200 1218 1477 1501 1509 1515 1529 1557 1625 1692 1722 1723 1742 1844 1868 1877 1904 1904 1972 2152 2165 2168 2171 2173 2198 2243 2267 2293 2293 2294 2308 2317 2323 2323 2387 2389 2390 2400 2400 2422 2423 2423 2440 2442 2447 2459 2461 2475 2475 2476 2477 2478 2479 2480 2481 2481 2482 2483 2484 2485 2486 2487 2488 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2527 2528 2529 2530 2531 2532 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 -35 30 32 33 35 58 60 64 76 78 78 84 89 120 133 202 204 204 241 249 249 301 304 340 366 384 416 428 496 508 624 699 700 700 778 815 832 906 923 923 943 987 997 1001 1200 1203 1226 1303 1360 1424 1432 1441 1749 1802 1868 1914 1933 1936 1962 2171 2188 2243 2327 2342 2352 2360 2427 2490 2494 2494 2502 2504 2530 2532 2533 2546 2546 2547 2548 2558 2560 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 -36 32 32 32 58 58 63 89 98 133 133 133 162 162 188 204 213 217 304 345 358 366 366 366 366 381 395 395 395 539 553 623 624 624 640 667 667 667 694 694 699 722 782 815 816 858 922 923 979 1012 1026 1040 1063 1079 1079 1088 1091 1149 1222 1453 1461 1526 1565 1662 1692 1692 1731 1750 1796 1829 1889 1931 1997 2000 2014 2014 2038 2111 2164 2188 2427 2445 2501 2505 2546 2578 2580 2591 2594 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 -37 9 32 32 33 46 58 63 79 84 133 133 162 188 237 247 259 260 273 301 301 304 304 326 340 358 366 424 447 480 504 508 546 580 591 606 617 617 637 640 653 667 667 699 782 793 793 794 895 923 955 1001 1026 1034 1034 1061 1087 1088 1088 1127 1147 1148 1155 1166 1177 1177 1228 1249 1303 1323 1339 1343 1368 1388 1441 1441 1444 1515 1630 1645 1800 1809 1972 2000 2054 2117 2151 2157 2164 2292 2360 2580 2591 2591 2617 2624 2625 2626 2631 2632 2632 2633 2634 2635 2638 2642 2643 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 -38 4 32 32 33 46 58 63 78 88 179 182 204 204 211 241 249 249 259 301 345 346 346 366 412 415 416 416 438 439 447 447 447 504 527 527 539 540 553 553 558 661 667 667 667 674 699 722 725 725 782 794 797 812 842 842 842 923 954 954 1129 1137 1144 1181 1202 1259 1339 1339 1444 1543 1617 1680 1705 1713 1874 1874 1878 2030 2054 2153 2224 2256 2307 2360 2413 2461 2481 2546 2580 2617 2619 2633 2635 2660 2661 2662 2663 2664 2665 2666 2669 2679 2680 2681 2689 2694 2695 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 -39 4 4 32 32 55 58 58 70 95 124 133 141 177 186 211 211 217 247 249 249 259 260 301 304 312 312 326 329 338 340 345 366 366 408 447 447 502 509 509 510 522 527 553 558 566 598 612 619 621 622 625 625 625 640 653 653 653 667 667 667 674 699 715 741 753 868 954 955 958 1027 1034 1063 1102 1120 1147 1193 1241 1241 1303 1483 1672 1719 1803 1868 1868 1973 2003 2014 2138 2138 2211 2248 2450 2494 2580 2615 2617 2617 2624 2625 2625 2625 2633 2635 2661 2662 2666 2669 2679 2682 2689 2711 2713 2725 2725 2728 2729 2732 2734 2737 2740 2746 2748 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2780 2781 2782 2783 2784 2785 -40 35 44 120 131 202 207 304 304 336 381 434 537 553 566 572 867 1039 1170 1222 1235 1259 1270 1357 1501 1575 1575 1617 1749 1795 1868 1889 2434 2627 2716 2756 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2799 2800 2801 2802 2803 2804 2804 2805 2806 2807 2808 2809 2810 2811 2812 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 -41 8 21 26 28 28 31 32 33 33 33 38 42 46 46 48 49 49 53 55 57 58 58 59 60 61 61 63 65 66 67 68 72 73 73 78 82 84 84 84 85 85 88 92 94 96 96 103 103 111 113 115 122 124 133 138 142 143 148 151 153 154 160 162 165 166 167 167 172 174 178 178 179 180 182 183 186 188 189 189 189 189 196 199 201 202 202 202 202 202 204 205 213 218 218 239 255 256 268 268 271 277 277 278 289 289 290 290 291 299 340 366 368 371 371 376 407 414 415 553 598 623 625 816 816 835 965 965 965 1082 1086 1129 1129 1172 1222 1241 1574 1575 1630 1673 1707 1825 1884 1928 2158 2293 2494 2619 2722 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2853 2854 2855 2856 2857 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 -42 4 5 24 28 32 32 33 44 44 48 49 51 52 55 56 56 56 59 65 70 72 72 73 78 96 97 103 111 111 113 117 123 124 135 136 136 136 141 143 148 152 153 167 178 179 182 185 186 188 190 217 218 226 230 232 235 236 241 244 246 247 249 255 259 260 260 260 261 268 268 268 273 274 276 277 278 279 282 287 289 290 291 291 293 294 295 304 305 308 310 326 340 340 349 368 376 381 384 403 406 407 407 414 417 450 454 510 535 540 553 554 702 710 738 789 889 964 1087 1087 1155 1200 1241 1241 1388 1432 1681 1696 1822 1962 1974 2014 2371 2372 2400 2409 2450 2619 2624 2781 2877 2878 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 -43 5 24 31 32 32 32 35 46 47 49 56 67 68 68 72 73 73 120 123 124 130 135 141 143 165 167 177 179 189 189 190 213 213 217 220 223 228 232 241 246 255 256 268 271 276 282 284 287 287 290 305 306 306 324 325 326 326 340 347 358 362 368 371 372 376 376 377 381 388 389 390 394 395 397 398 399 403 404 405 407 411 415 415 415 442 447 450 539 550 553 593 691 699 741 816 856 868 954 1097 1097 1102 1191 1195 1214 1214 1259 1351 1368 1390 1417 1477 1545 1545 1680 1841 1868 1868 1962 2223 2248 2293 2360 2475 2475 2506 2508 2510 2514 2625 2673 2678 2779 2877 2888 2915 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 -44 4 21 24 31 41 46 48 49 72 73 83 103 105 120 120 120 124 124 130 136 136 136 165 179 189 189 193 202 217 218 218 219 222 227 227 227 228 232 243 249 268 271 275 289 320 324 325 327 329 334 349 354 356 363 376 388 395 404 405 407 421 431 431 439 439 442 447 450 454 457 473 489 504 504 504 504 504 510 550 550 553 553 568 593 709 753 883 959 964 964 965 987 1047 1052 1086 1087 1097 1097 1241 1259 1432 1501 1696 1829 1865 2240 2469 2484 2726 2727 2847 2914 2933 2946 2947 2947 2948 2974 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2989 2990 2991 2992 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 -45 4 21 22 105 114 114 120 120 124 124 130 156 162 188 189 202 217 217 217 232 241 249 289 289 325 340 408 414 415 419 423 428 429 429 432 437 439 462 474 474 478 480 485 496 497 497 498 500 502 504 508 509 509 509 527 527 528 530 532 532 533 533 535 539 543 543 547 554 554 559 864 868 912 930 930 954 965 971 1002 1019 1087 1129 1149 1163 1183 1200 1214 1214 1237 1241 1259 1259 1318 1350 1390 1424 1501 1526 1538 1678 1714 1829 1829 1886 1973 2014 2086 2198 2198 2243 2371 2421 2678 2753 2758 2766 2851 2877 2995 2995 3003 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3020 3021 3022 3023 3024 3024 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3034 3035 3036 3037 3038 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 -46 -47 21 31 32 33 33 58 58 64 78 204 207 217 217 260 260 318 366 366 408 504 508 508 539 550 553 567 568 568 568 568 568 570 573 574 576 577 580 588 590 590 591 594 597 597 598 599 601 603 604 606 608 608 609 610 612 613 614 623 624 625 626 634 635 638 641 642 643 646 646 649 652 652 653 659 662 663 664 672 678 690 693 699 703 708 712 713 715 717 725 726 727 733 751 763 782 790 792 819 823 841 849 867 868 887 919 934 939 939 939 954 1052 1087 1130 1270 1276 1303 1451 1673 1679 2400 2591 2591 2627 2706 2856 2926 3042 3075 3075 3082 3083 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 -48 21 31 31 58 67 181 181 217 217 217 217 340 346 346 356 366 366 499 527 527 527 539 553 568 588 588 588 590 590 606 606 612 623 626 630 637 638 638 638 641 650 652 652 653 664 687 691 700 706 711 711 714 715 716 721 723 725 729 738 741 745 753 762 763 764 765 765 767 769 774 780 782 783 785 786 787 787 791 796 802 803 810 810 811 838 849 858 894 895 942 951 954 954 979 1019 1027 1039 1044 1057 1170 1174 1203 1222 1222 1572 1691 1829 1953 1953 1987 1987 2014 2014 2135 2241 2736 2793 2912 2962 3100 3121 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 -49 4 4 4 4 32 32 33 33 58 58 72 72 83 84 105 157 162 162 162 162 179 179 179 213 217 217 217 217 217 243 318 320 321 336 346 366 368 384 388 416 424 504 539 550 550 550 553 553 553 553 558 570 573 583 588 590 635 638 644 654 664 691 691 697 702 704 711 750 753 753 754 755 755 756 757 759 760 762 763 765 770 774 775 799 807 817 818 819 823 837 838 842 842 844 845 846 846 849 851 854 858 858 858 858 860 865 866 868 874 875 878 880 880 885 885 887 889 889 891 891 892 895 897 922 925 942 951 954 970 1019 1030 1034 1047 1049 1060 1097 1170 1187 1195 1199 1214 1241 1241 1241 1241 1241 1259 1405 1465 1501 1529 1575 1622 1679 1768 1889 2276 2494 2576 2627 2678 2678 2847 2973 3006 3043 3063 3073 3147 3155 3165 3166 3167 3168 3169 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 -50 31 32 32 58 63 114 219 247 320 345 345 358 366 366 366 395 416 424 502 504 504 509 539 544 550 550 554 558 558 558 569 580 580 583 583 588 590 598 604 612 617 617 624 636 638 664 693 693 710 715 750 770 770 770 780 786 790 813 817 818 818 819 824 825 826 832 834 836 836 839 839 843 846 846 851 853 853 854 856 858 858 859 860 867 868 869 872 874 875 875 878 880 885 885 887 887 889 902 909 915 920 923 924 925 928 931 932 933 939 939 940 941 943 951 951 954 954 1002 1007 1083 1107 1111 1235 1235 1241 1303 1679 1742 1841 1841 1862 1872 2135 2165 2276 2276 2390 2627 2729 2745 2748 3105 3117 3182 3184 3194 3197 3197 3204 3208 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 -51 22 32 32 32 32 32 33 33 46 58 58 63 72 114 182 217 217 217 218 247 247 260 260 345 358 366 424 439 539 539 553 553 558 558 591 604 608 623 623 693 698 702 731 738 750 770 770 782 786 794 815 817 818 819 824 825 832 834 843 846 856 862 862 862 868 880 895 896 902 909 913 916 919 922 924 926 927 928 929 931 932 933 939 939 941 943 943 944 946 948 948 954 954 954 954 955 957 959 968 970 971 973 974 975 978 983 986 987 1000 1004 1007 1010 1014 1034 1061 1077 1079 1083 1087 1121 1149 1149 1153 1153 1187 1259 1707 1742 1742 1750 1829 1841 1841 1946 2047 2168 2188 2276 2306 2683 3004 3047 3075 3077 3104 3171 3194 3225 3235 3237 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 -52 4 22 31 32 33 58 72 72 105 124 204 218 218 218 218 218 227 227 247 249 287 326 439 480 489 502 502 502 502 502 502 504 504 539 540 553 553 558 568 572 574 583 585 588 606 606 606 606 684 693 699 709 751 755 765 793 804 829 836 846 846 849 851 868 881 898 911 915 916 916 939 943 949 954 954 955 956 957 958 961 962 965 969 972 974 974 978 978 987 989 996 1000 1001 1002 1003 1005 1016 1017 1021 1023 1029 1030 1030 1034 1034 1034 1035 1043 1050 1052 1055 1055 1058 1060 1060 1063 1064 1068 1071 1083 1106 1109 1111 1114 1127 1127 1152 1170 1174 1183 1204 1235 1259 1471 1506 1545 1660 1679 1696 1841 1841 1869 1874 1874 1974 2014 2014 2151 2152 2168 2188 2243 2307 2532 2532 2678 2736 2758 2764 3065 3152 3171 3192 3255 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 -53 32 33 48 69 105 120 120 188 188 189 189 204 204 204 217 217 218 247 247 249 249 260 271 320 320 320 349 370 405 408 408 416 438 500 500 502 502 502 502 502 509 543 544 546 552 553 553 566 588 588 607 617 652 654 654 662 693 699 812 819 842 842 847 851 858 868 868 868 916 955 959 964 965 983 1001 1003 1009 1019 1021 1022 1023 1024 1030 1033 1034 1041 1047 1057 1060 1061 1063 1064 1064 1076 1083 1085 1097 1097 1099 1107 1109 1109 1111 1114 1120 1120 1120 1121 1129 1129 1129 1129 1129 1129 1129 1132 1138 1145 1153 1155 1174 1182 1187 1199 1200 1214 1228 1258 1259 1270 1276 1386 1451 1506 1528 1553 1622 1696 1718 1809 2048 2138 2138 2248 2326 2532 2619 2758 2758 3034 3047 3071 3079 3085 3096 3096 3264 3275 3277 3278 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 -54 32 48 78 105 114 120 120 120 120 182 204 204 211 241 249 303 303 304 324 324 346 349 366 366 366 366 405 502 502 502 502 502 522 544 544 546 585 588 588 588 597 617 644 653 699 725 782 836 836 868 875 959 961 980 1001 1001 1027 1034 1052 1059 1083 1087 1087 1093 1099 1102 1102 1103 1109 1109 1110 1111 1114 1119 1120 1120 1127 1129 1130 1131 1133 1138 1140 1141 1141 1144 1153 1165 1169 1189 1192 1214 1241 1258 1258 1270 1392 1505 1509 1526 1526 1575 1678 1684 1684 1915 2014 2138 2269 2678 2761 2761 2874 2997 3003 3049 3054 3075 3138 3138 3316 3319 3325 3330 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 -55 4 4 4 30 31 31 32 32 32 32 33 202 228 247 249 276 320 320 338 345 346 366 366 366 366 366 366 366 366 366 381 439 442 462 509 546 568 588 588 653 653 653 653 653 674 674 751 782 842 842 842 847 847 847 989 1025 1027 1030 1030 1034 1041 1060 1097 1097 1097 1098 1114 1140 1148 1150 1151 1155 1168 1169 1169 1170 1170 1177 1183 1183 1187 1189 1192 1193 1196 1200 1205 1206 1210 1213 1226 1227 1229 1233 1234 1234 1241 1256 1258 1258 1258 1270 1270 1303 1392 1415 1451 1501 1550 1662 1673 1679 1680 1742 1794 1822 2014 2014 2461 2493 2713 2764 3079 3098 3121 3147 3152 3194 3254 3316 3360 3361 3365 3372 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 -56 4 4 4 32 114 120 217 218 218 358 366 366 370 370 381 426 506 506 540 543 553 558 558 568 588 588 638 810 810 867 939 964 1019 1060 1087 1087 1098 1153 1177 1214 1218 1219 1234 1241 1241 1242 1258 1258 1270 1276 1286 1371 1424 1451 1501 1678 1679 1679 1679 1745 2242 2706 2791 2941 3194 3284 3360 3392 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 -57 4 4 4 24 24 24 25 31 31 45 46 68 72 72 72 72 72 72 73 73 133 182 189 189 189 189 202 217 217 217 217 218 218 218 218 218 218 218 218 218 271 345 345 345 345 346 346 346 366 366 370 370 370 370 370 407 434 489 527 539 539 539 539 550 550 550 550 550 550 553 553 553 553 558 558 568 568 588 607 618 653 716 782 816 867 867 867 954 954 954 954 1041 1087 1087 1087 1087 1177 1187 1218 1223 1223 1235 1236 1236 1236 1238 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1246 1253 1254 1258 1258 1259 1265 1265 1266 1266 1270 1273 1278 1286 1290 1303 1451 1526 1550 1588 1679 1679 1679 1680 1692 1822 2014 2047 2242 2369 2501 2823 2941 3075 3075 3075 3079 3079 3079 3372 3372 3372 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 -58 4 4 4 4 4 4 4 4 4 4 4 21 24 24 24 24 24 24 31 31 31 32 32 33 46 46 72 72 72 84 133 133 189 189 189 189 189 202 202 202 213 217 217 217 217 217 218 218 234 271 312 370 370 370 370 370 370 434 527 527 527 539 539 550 553 553 568 568 607 755 755 782 858 908 919 954 954 954 954 954 1087 1087 1087 1087 1087 1087 1087 1087 1087 1087 1149 1223 1238 1238 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1242 1258 1258 1258 1258 1259 1259 1281 1283 1286 1287 1290 1424 1673 1679 1679 1679 1692 1704 2014 2591 2753 2941 2957 2957 2957 2957 3079 3194 3194 3194 3194 3194 3194 3416 3429 3438 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 -59 4 4 24 31 32 33 46 46 72 120 120 133 179 189 189 189 189 189 189 202 217 218 218 218 268 370 370 539 550 550 553 553 558 558 558 558 558 568 568 568 755 755 782 782 843 858 954 954 955 965 965 965 1039 1087 1087 1087 1214 1235 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1241 1283 1286 1538 1538 1675 1679 1679 1679 1679 2014 2238 2761 2941 2957 3075 3079 3194 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3485 3486 -60 4 4 4 24 24 31 31 32 33 56 72 105 136 189 189 207 209 209 209 217 217 217 217 217 218 247 260 271 301 306 312 317 320 354 408 548 550 553 553 558 568 568 568 568 568 568 568 613 619 619 623 635 637 652 653 684 706 738 784 847 853 858 894 939 954 965 985 1087 1151 1187 1193 1223 1226 1237 1334 1338 1339 1342 1343 1355 1375 1375 1378 1411 1422 1428 1441 1460 1468 1471 1515 1617 1673 1809 1829 1841 1905 2326 2494 2510 2532 2706 2707 2729 2745 3075 3194 3264 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 -61 4 4 33 33 45 48 58 73 83 105 120 120 120 133 133 202 204 204 217 218 285 289 312 320 320 320 324 327 340 370 432 438 485 502 504 508 509 509 527 540 544 550 558 563 699 739 770 845 867 867 867 922 965 1022 1030 1047 1082 1083 1086 1097 1098 1109 1177 1206 1214 1241 1270 1271 1303 1305 1307 1310 1312 1315 1337 1339 1339 1340 1342 1345 1353 1365 1367 1367 1369 1370 1378 1379 1379 1379 1381 1381 1382 1383 1388 1388 1392 1392 1415 1424 1443 1450 1451 1451 1457 1458 1459 1460 1467 1475 1515 1515 1523 1526 1544 1560 1621 1623 1679 1681 1696 1705 1779 1796 1805 1972 2014 2018 2138 2240 2341 2400 2706 2736 2753 2753 2765 2877 2903 2957 2957 2957 3079 3171 3252 3293 3311 3325 3455 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 -62 4 21 21 24 45 53 72 72 73 120 133 133 146 156 179 204 204 217 312 320 320 338 340 349 366 407 429 502 502 502 502 502 553 553 558 637 699 699 725 739 784 784 816 845 852 867 867 884 949 965 979 1087 1097 1097 1097 1098 1098 1109 1182 1187 1218 1246 1256 1310 1315 1339 1340 1342 1342 1342 1345 1350 1351 1351 1351 1365 1371 1379 1381 1388 1395 1407 1450 1450 1451 1451 1451 1463 1467 1482 1483 1486 1487 1489 1490 1493 1494 1497 1498 1500 1501 1502 1504 1504 1505 1507 1508 1508 1511 1513 1514 1515 1518 1519 1520 1522 1523 1523 1525 1526 1526 1527 1529 1530 1531 1532 1538 1538 1540 1541 1543 1552 1553 1553 1557 1560 1561 1562 1563 1629 1630 1678 1679 1680 1690 1796 1839 1962 1965 2134 2161 2400 2483 2867 2925 3047 3194 3248 3360 3583 3627 3628 3629 3630 3631 3632 3633 3634 3635 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 -63 4 4 21 22 72 73 120 120 133 133 133 136 165 232 320 320 327 340 439 508 527 537 539 539 550 696 702 702 782 784 784 835 841 847 867 1072 1098 1098 1098 1098 1102 1170 1177 1181 1214 1214 1219 1241 1241 1246 1256 1256 1271 1310 1339 1342 1342 1395 1451 1451 1467 1501 1512 1515 1515 1515 1517 1526 1544 1550 1560 1568 1572 1575 1576 1580 1581 1589 1591 1593 1598 1605 1609 1616 1617 1618 1619 1621 1623 1630 1704 1711 1712 1723 1780 1868 2014 2135 2619 2812 2847 2979 3047 3047 3075 3075 3139 3251 3426 3537 3587 3591 3612 3612 3651 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 -64 4 4 4 4 19 32 33 35 48 118 120 133 133 217 217 227 289 340 368 441 443 550 558 782 813 842 842 842 852 867 867 867 901 954 1241 1310 1336 1340 1350 1351 1351 1370 1370 1371 1501 1513 1538 1587 1589 1594 1597 1615 1615 1621 1632 1636 1637 1637 1638 1640 1642 1646 1646 1647 1650 1651 1652 1656 1661 1662 1663 1663 1671 1672 1681 1684 1689 1694 1702 1707 2014 2753 2812 3121 3499 3687 3694 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 -65 4 4 4 4 4 4 4 22 31 31 32 32 72 73 84 162 217 318 321 346 370 370 508 550 558 755 784 842 954 965 1087 1226 1241 1276 1336 1351 1557 1594 1623 1671 1680 1689 1697 1702 1703 2014 2014 2014 2117 2135 2792 2941 2941 3056 3152 3177 3326 3703 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 -66 32 39 58 204 275 318 318 320 371 407 408 408 414 417 432 473 626 649 653 653 653 653 655 667 668 668 674 674 793 797 939 1030 1113 1115 1203 1210 1319 1352 1388 1529 1557 1566 1714 1716 1720 1722 1725 1726 1729 1738 1742 1742 1745 1745 1747 1748 1748 1750 1751 1755 1756 1758 1759 1763 1764 1766 1766 1766 1768 1771 1771 1777 1779 1779 1781 1784 1785 1785 1791 1794 1796 1798 1799 1800 1802 1803 1807 1808 1809 1810 1811 1812 1813 1815 1820 1821 1836 1841 1842 1864 1868 1870 1871 1875 1889 1895 1901 1902 1929 1936 1961 1980 2014 2017 2018 2060 2106 2186 2202 2237 2301 2360 2360 2389 2450 2491 2494 2494 2521 2546 2591 2617 2745 2745 2748 2748 2781 3038 3075 3293 3311 3378 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3770 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 -67 14 32 32 32 48 58 84 133 133 168 183 211 259 260 366 395 395 408 433 439 547 558 563 566 572 572 580 583 591 598 622 625 642 653 654 662 662 684 694 699 704 731 755 797 816 818 818 819 832 832 858 910 922 923 925 954 987 1034 1200 1352 1415 1477 1501 1521 1543 1543 1630 1692 1726 1738 1747 1748 1750 1763 1763 1765 1766 1771 1771 1771 1771 1776 1777 1785 1809 1819 1822 1824 1826 1832 1837 1840 1841 1841 1843 1844 1845 1852 1862 1863 1868 1871 1879 1882 1882 1885 1886 1888 1889 1891 1892 1896 1897 1899 1901 1903 1908 1909 1936 1953 1961 1963 1968 1972 1973 2000 2000 2030 2053 2099 2107 2138 2151 2242 2243 2361 2372 2400 2442 2470 2494 2501 2506 2563 2729 2741 2939 3047 3075 3079 3181 3219 3311 3369 3707 3707 3758 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 -68 33 58 72 78 98 133 133 168 193 204 217 217 217 241 241 249 354 366 366 366 366 414 439 447 463 494 537 592 607 619 625 632 635 637 653 654 668 675 675 679 699 794 819 842 923 925 958 1048 1079 1174 1374 1386 1388 1521 1543 1575 1753 1761 1771 1771 1829 1832 1856 1856 1862 1868 1868 1874 1874 1877 1899 1914 1916 1928 1928 1928 1929 1930 1931 1933 1933 1933 1937 1941 1943 1945 1946 1953 1953 1958 1959 1962 1963 1965 1965 1965 1968 1969 1971 1973 1980 2005 2014 2014 2016 2018 2028 2039 2042 2106 2111 2136 2147 2151 2151 2185 2237 2292 2360 2400 2440 2459 2470 2494 2578 2587 2653 2741 2881 2918 3075 3079 3079 3096 3464 3748 3789 3795 3800 3800 3801 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3867 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 -69 32 33 33 33 58 63 188 228 239 247 249 260 296 325 340 345 366 371 395 432 540 550 568 624 652 662 684 694 699 736 782 816 863 868 922 923 923 923 1027 1034 1061 1165 1170 1199 1241 1301 1303 1395 1680 1717 1721 1768 1810 1824 1833 1836 1856 1874 1884 1903 1916 1930 1957 2014 2030 2040 2048 2051 2052 2053 2058 2060 2061 2065 2084 2091 2094 2102 2103 2117 2117 2122 2128 2137 2141 2147 2152 2218 2243 2288 2361 2440 2481 2494 2546 2546 2572 2600 2614 2625 2655 2748 2751 2764 2874 2957 2957 3075 3075 3075 3312 3764 3784 3833 3835 3844 3854 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 -70 32 32 38 48 58 58 78 112 204 210 211 226 226 231 236 287 366 366 371 550 644 653 694 699 744 782 784 845 923 955 1009 1024 1027 1034 1036 1042 1052 1083 1220 1226 1303 1380 1441 1518 1538 1543 1630 1630 1738 1753 1777 1788 1836 1841 1856 1871 1916 1936 1936 1957 2000 2014 2015 2027 2033 2033 2046 2047 2052 2058 2061 2063 2067 2074 2083 2083 2099 2106 2113 2116 2122 2125 2132 2138 2145 2147 2152 2153 2156 2157 2161 2162 2165 2168 2170 2183 2186 2187 2188 2191 2193 2204 2205 2206 2207 2209 2224 2228 2230 2253 2258 2301 2302 2440 2440 2442 2459 2482 2494 2613 2624 2625 2668 2736 2851 2979 3004 3006 3059 3150 3281 3464 3464 3667 3801 3854 3862 3863 3880 3890 3891 3922 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 -71 33 63 105 143 162 217 260 321 371 372 390 408 429 432 540 572 613 621 642 694 699 707 784 789 793 842 842 895 918 923 923 923 1027 1034 1072 1157 1160 1199 1303 1357 1432 1543 1731 1743 1746 1750 1836 1836 1852 1870 1872 1875 1987 1995 2010 2061 2067 2125 2141 2147 2147 2151 2152 2156 2158 2186 2203 2207 2208 2224 2233 2258 2261 2263 2266 2268 2269 2272 2276 2280 2293 2301 2306 2323 2329 2336 2344 2352 2361 2440 2442 2459 2459 2494 2542 2576 2591 2726 2728 2979 2979 3047 3205 3205 3292 3321 3507 3587 3743 3790 3863 3870 3979 4006 4007 4008 4009 4010 4011 4012 4013 4014 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 -72 4 5 24 31 33 48 58 88 98 162 217 231 268 366 372 429 486 527 566 592 694 738 923 985 1019 1019 1200 1352 1432 1630 1675 1690 1692 1726 1753 1870 1871 1878 1946 1954 2082 2158 2202 2221 2234 2263 2276 2288 2293 2301 2303 2333 2371 2372 2373 2386 2390 2400 2413 2417 2423 2426 2433 2437 2440 2442 2443 2447 2450 2455 2458 2460 2462 2465 2470 2471 2494 2494 2494 2527 2558 2560 2568 2625 2741 2799 2851 2898 2914 2984 3063 3100 3150 3201 3309 3311 3318 3348 3348 3356 3356 3612 3784 3801 3844 3906 3913 3918 3979 4011 4052 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 -73 32 33 33 33 35 35 44 58 58 78 104 217 237 257 320 351 397 405 408 416 502 508 528 583 625 686 738 753 918 920 987 987 1009 1019 1052 1144 1175 1175 1199 1223 1377 1483 1515 1615 1622 1722 1726 1742 1877 1896 1915 1915 1946 1974 2061 2171 2221 2301 2323 2325 2327 2340 2385 2386 2387 2420 2423 2442 2445 2459 2494 2521 2528 2528 2537 2544 2558 2560 2561 2561 2563 2591 2594 2666 2805 2928 2972 3004 3042 3147 3177 3251 3311 3588 3641 3741 3742 3784 3785 3851 3898 3908 4109 4172 4179 4187 4188 4189 4190 4190 4191 4192 4193 4194 4195 4196 4196 4197 4198 4199 4200 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 -74 32 32 32 58 58 124 193 202 204 204 213 217 260 340 366 366 395 415 485 527 553 589 591 625 625 642 668 684 694 699 812 818 923 1003 1034 1034 1042 1199 1200 1200 1203 1471 1526 1675 1868 1884 1904 1914 1931 1950 2062 2111 2165 2165 2168 2243 2292 2292 2356 2360 2387 2389 2400 2423 2427 2440 2445 2491 2491 2494 2527 2532 2533 2542 2542 2546 2547 2555 2558 2558 2560 2563 2567 2583 2585 2591 2592 2593 2598 2600 2603 2609 2610 2617 2636 2638 2639 2666 2691 2736 2741 2755 2851 2874 3228 3264 3348 3356 3503 3725 3725 3835 3912 4036 4048 4115 4149 4210 4232 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4319 4320 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 -75 7 32 32 33 72 76 98 210 217 228 301 301 304 320 346 366 366 395 432 508 566 572 572 617 624 640 699 770 815 860 906 916 923 923 1061 1063 1219 1222 1229 1253 1263 1270 1303 1421 1692 1742 1822 1841 1868 1868 1870 1874 1941 2015 2117 2138 2138 2165 2214 2237 2241 2243 2292 2459 2475 2494 2494 2505 2546 2547 2560 2589 2598 2604 2617 2622 2625 2626 2627 2631 2638 2645 2652 2655 2680 2686 2696 2730 2801 3075 3417 3425 3503 3707 3750 3826 4291 4320 4321 4335 4335 4336 4337 4338 4339 4340 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 -76 32 33 33 33 60 63 68 89 133 156 188 237 260 301 304 368 395 432 617 617 619 624 640 652 667 694 699 713 772 815 860 923 1026 1069 1079 1222 1398 1444 1505 1681 1787 1800 1822 1953 2000 2014 2151 2164 2188 2243 2243 2292 2400 2494 2494 2580 2591 2592 2617 2623 2626 2628 2632 2638 2645 2654 2664 2669 2696 2701 2735 2746 2801 2851 2997 3075 3079 3588 3676 3682 4036 4048 4189 4343 4344 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 -77 8 32 32 32 33 33 33 58 58 105 120 124 133 133 156 162 228 287 301 304 349 366 366 395 414 442 447 447 527 553 568 625 640 640 653 653 667 667 699 702 738 797 835 847 954 963 1034 1069 1083 1121 1214 1271 1339 1543 1679 1720 1742 1829 1844 2111 2153 2188 2241 2248 2248 2413 2413 2427 2494 2497 2560 2576 2580 2613 2633 2635 2661 2662 2663 2669 2676 2680 2684 2687 2689 2695 2713 2721 2723 2726 2730 2732 2736 2740 2741 2743 2744 2745 2746 2747 2748 2748 2749 2751 2753 2775 2855 2874 2947 2957 3082 3205 3284 3294 3952 4115 4115 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 -78 32 46 58 60 60 78 124 133 144 162 182 182 186 210 211 211 211 287 304 312 324 345 358 366 381 414 415 416 447 447 487 504 527 565 621 622 623 625 652 653 667 699 725 739 782 858 898 965 974 1027 1034 1052 1058 1061 1087 1169 1196 1241 1451 1477 1633 1719 1787 2138 2224 2243 2269 2360 2413 2580 2616 2624 2625 2635 2635 2665 2679 2682 2713 2725 2729 2729 2732 2734 2736 2740 2741 2743 2748 2753 2757 2760 2766 2767 2768 2770 2775 2776 2777 2780 2780 2780 2781 2782 2783 2784 2785 2925 2957 3007 3053 3075 3075 3082 3127 3152 3299 3464 3510 3510 3536 3536 3746 4115 4182 4387 4402 4410 4411 4412 4413 4414 4415 4416 4417 4417 4418 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 -79 4 4 31 32 33 46 48 55 58 58 59 114 120 133 144 162 182 182 217 228 235 247 249 249 287 304 345 366 366 370 381 395 408 424 426 439 442 502 504 558 568 625 637 653 653 667 668 755 755 784 810 858 858 901 954 954 954 964 974 989 1027 1049 1063 1087 1087 1120 1214 1241 1241 1303 1406 1451 1462 1501 1501 1501 1678 1678 1718 1809 1880 1888 1889 1901 1972 2014 2070 2293 2360 2372 2494 2501 2578 2591 2615 2615 2617 2617 2617 2633 2661 2665 2678 2679 2691 2711 2713 2734 2757 2758 2759 2759 2760 2762 2767 2768 2770 2771 2775 2780 2784 2941 3018 3063 3071 3075 3075 3079 3313 3426 3464 3676 3731 3835 4287 4383 4396 4402 4420 4423 4428 4434 4434 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 -80 32 33 58 72 79 179 202 207 217 304 304 338 366 381 395 498 553 553 553 576 591 623 674 694 782 810 845 857 918 1087 1120 1120 1157 1229 1241 1241 1339 1511 1660 1704 1829 2117 2269 2533 2617 2661 2665 2665 2711 2759 2767 2768 2780 2784 2816 2847 2941 3005 3251 3464 4290 4387 4390 4390 4395 4418 4422 4427 4427 4457 4462 4462 4463 4464 4466 4470 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 -81 3 4 4 5 7 9 11 12 19 23 29 32 33 35 35 36 39 43 45 48 48 49 51 52 55 56 57 58 58 59 60 61 63 64 65 67 68 70 72 72 72 72 72 73 73 76 77 80 82 83 84 84 84 84 85 85 88 92 94 96 97 98 98 99 101 103 133 141 141 153 156 157 157 157 165 167 169 178 179 183 186 188 189 189 198 199 204 205 217 217 217 218 218 227 239 249 256 277 278 289 290 301 354 358 366 368 370 370 371 371 376 395 407 415 424 430 536 553 614 623 625 636 784 965 1030 1195 1241 1465 1526 1575 1617 1673 1673 1679 1953 2030 2223 2480 2812 2836 2841 2853 2853 2856 2879 2918 2957 3006 3146 3205 3326 3676 3676 3676 3707 4391 4489 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4561 4562 -82 5 7 12 21 24 29 32 44 49 49 52 52 55 56 58 58 58 60 65 68 73 73 97 99 103 113 115 126 126 131 136 136 136 136 141 142 143 147 147 148 150 151 154 158 165 165 167 179 179 182 182 186 188 189 192 197 199 231 232 235 240 249 255 260 268 268 268 270 271 274 275 276 278 280 287 289 289 290 291 295 301 304 305 307 320 320 320 320 370 372 403 404 407 415 454 502 784 786 842 959 964 964 964 965 965 1030 1088 1200 1219 1223 1352 1390 1501 1868 2113 2159 2409 2447 2480 2483 2552 2624 2624 2690 2845 2846 2848 2869 2878 2903 2907 2914 2917 2918 2924 2948 2957 2957 2957 2968 2973 2990 3030 3045 3047 3194 3197 3667 3835 3890 3921 4115 4429 4489 4524 4529 4529 4535 4538 4541 4544 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 -83 5 19 23 28 31 32 32 42 48 49 52 73 73 96 97 103 105 135 141 142 143 162 167 179 207 218 227 232 235 244 246 250 255 257 261 262 268 273 274 275 276 277 280 282 283 284 289 290 292 295 297 304 331 340 354 358 371 371 376 388 390 395 395 398 403 404 407 407 414 417 450 553 699 702 816 816 829 868 955 1102 1102 1241 1323 1388 1528 1874 1874 2243 2430 2619 2756 2758 2848 2848 2856 2893 2898 2901 2903 2911 2914 2915 2917 2918 2941 2946 2962 2965 2997 3002 3030 3045 3282 3284 3356 3968 4280 4345 4529 4546 4582 4582 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 -84 4 4 4 21 22 22 24 71 73 103 103 124 124 130 136 143 162 165 178 202 217 218 232 243 246 247 249 255 271 271 276 276 286 289 290 296 311 315 320 328 328 335 337 338 340 340 342 354 358 381 381 389 390 395 399 399 403 404 407 409 414 417 434 439 442 451 453 454 457 504 553 568 607 653 842 959 1097 1155 1219 1223 1241 1342 1351 1395 1406 1675 1681 1742 1792 2215 2341 2469 2806 2848 2903 2903 2914 2931 2934 2965 2991 2991 3045 3047 3186 3194 3290 3890 3928 4411 4569 4601 4605 4615 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 diff --git a/archive/2010-LoopClosure/ShowLogs/precisionRecallAllDetectors.m b/archive/2010-LoopClosure/ShowLogs/precisionRecallAllDetectors.m new file mode 100644 index 0000000000..da3ecb0c9a --- /dev/null +++ b/archive/2010-LoopClosure/ShowLogs/precisionRecallAllDetectors.m @@ -0,0 +1,56 @@ + +#set(0,'defaultAxesFontName', 'Times') +#set(0,'defaultTextFontName', 'Times') + +Prefix = 'loop_closure_detection_datasets'; +Dataset= 'CityCentre' +Detectors = {'Surf'; 'Sift'; 'CudaSift'; 'GfttBrief'}; + +% The Ground Truth is a squared bmp file (size must match the log files +% length) where white dots mean loop closures. +% Grey dots mean 'loop closures to ignore', this happens when the rehearsal +% doesn't match consecutive images together. +GroundTruthFile = [Prefix '/' Dataset '.png']; + +colors = 'kbgrcm'; +figure +xlabel('Recall (%)') +ylabel('Precision (%)') +hold on; + +Results = {}; +TimeResults = {}; + +for i=1:length(Detectors) + LogI = importfile([Prefix '/' Dataset '/' Detectors{i} 'LogI.txt']); + LogF = importfile([Prefix '/' Dataset '/' Detectors{i} 'LogF.txt']); + + PR = getPrecisionRecall(LogI, LogF, GroundTruthFile, 0.07); + plot(100*PR(:,2), 100*PR(:,1), colors(mod(i,6)+1)); + % hold on; + Results{i} = PR; + time = sum(LogF(:,2:7),2)+LogF(:,17);%LogF(:,1) + TimeResults{i} = time; + meanTime = mean(time) + meanWm = mean(LogI(:,7)) + meanDict = mean(LogI(:,6)) + maxTime = max(time) + maxWm = max(LogI(:,7)) + maxDict = max(LogI(:,6)) + + %figure(2) + %plot(PR(:,4), PR(:,3), colors(mod(i,6)+1)); + %hold on; +end +legend(Detectors) +title(Dataset) + +figure +rows=floor(length(Detectors)/2 )+ mod(length(Detectors), 2) +for i=1:length(TimeResults) + subplot(rows, 2, i) + plot(TimeResults{i}) + ylabel('Time (s)') + title([Detectors{i} ' (' num2str(mean(TimeResults{i})) 's)']) +end +xlabel('Location indexes') diff --git a/archive/2010-LoopClosure/ShowLogs/showlogs.m b/archive/2010-LoopClosure/ShowLogs/showlogs.m index 553dc7b619..074b171e81 100644 --- a/archive/2010-LoopClosure/ShowLogs/showlogs.m +++ b/archive/2010-LoopClosure/ShowLogs/showlogs.m @@ -1,4 +1,4 @@ -function [LogF LogI] = showlogs(PathPrefix, GT_file) +function [LogF LogI] = showlogs(PathPrefix, GT_file, LogPrefix) % [LogF LogI] = showlogs(PathPrefix, GT_file) % SHOWLOGS Plot a RTAB-Map results (LogI.txt, LogF.txt). Just put this % file in the same directory as LogF.txt and LogI.txt files @@ -24,6 +24,7 @@ close all +if nargin < 3, LogPrefix = ''; end if nargin < 2, GT_file = ''; end if nargin < 1, PathPrefix = '.'; end @@ -31,7 +32,7 @@ display(' '); display('Loading log files...'); -LogF = importfile([PathPrefix '/' 'LogF.txt']); +LogF = importfile([PathPrefix '/' LogPrefix 'LogF.txt']); % COLUMN HEADERS : % 1 totalTime % 2 timeMemoryUpdate, @@ -54,7 +55,7 @@ % 19 timeEmptyingTrash % 20 timeRetrievalDbAccess -LogI = importfile([PathPrefix '/' 'LogI.txt']); +LogI = importfile([PathPrefix '/' LogPrefix 'LogI.txt']); % COLUMN HEADERS : % 1 lcHypothesisId, % 2 highestHypothesisId, diff --git a/archive/2010-LoopClosure/run_all.sh b/archive/2010-LoopClosure/run_all.sh deleted file mode 100755 index ef41d4eca5..0000000000 --- a/archive/2010-LoopClosure/run_all.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" - -$SCRIPT_DIR/run_bow.sh ~/loop_closure_detection_datasets/NewCollege ~/loop_closure_detection_datasets/NewCollege.png -$SCRIPT_DIR/run_bow.sh ~/loop_closure_detection_datasets/CityCentre ~/loop_closure_detection_datasets/CityCentre.png -$SCRIPT_DIR/run_bow.sh ~/loop_closure_detection_datasets/UdeS_1Hz ~/loop_closure_detection_datasets/UdeS_1Hz.png - diff --git a/archive/2010-LoopClosure/run_all_datasets.sh b/archive/2010-LoopClosure/run_all_datasets.sh new file mode 100755 index 0000000000..4e84158f9e --- /dev/null +++ b/archive/2010-LoopClosure/run_all_datasets.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +DATASETS_FOLDER="" +if [ $# -eq 1 ] +then + DATASETS_FOLDER=$1 +else +echo "Usage: run_all_datasets.sh \"datasets folder\" " +exit +fi + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" + +$SCRIPT_DIR/run_bow.sh $DATASETS_FOLDER/NewCollege $DATASETS_FOLDER/NewCollege.png +if [ -s LogF.txt ]; then +mv LogF.txt $DATASETS_FOLDER/NewCollege/LogF.txt +mv LogI.txt $DATASETS_FOLDER/NewCollege/LogI.txt +fi +$SCRIPT_DIR/run_bow.sh $DATASETS_FOLDER/CityCentre $DATASETS_FOLDER/CityCentre.png +if [ -s LogF.txt ]; then +mv LogF.txt $DATASETS_FOLDER/CityCentre/LogF.txt +mv LogI.txt $DATASETS_FOLDER/CityCentre/LogI.txt +fi +$SCRIPT_DIR/run_bow.sh $DATASETS_FOLDER/UdeS_1Hz $DATASETS_FOLDER/UdeS_1Hz.png +if [ -s LogF.txt ]; then +mv LogF.txt $DATASETS_FOLDER/UdeS_1Hz/LogF.txt +mv LogI.txt $DATASETS_FOLDER/UdeS_1Hz/LogI.txt +fi + diff --git a/archive/2010-LoopClosure/run_all_detectors.sh b/archive/2010-LoopClosure/run_all_detectors.sh new file mode 100755 index 0000000000..54b3b8a561 --- /dev/null +++ b/archive/2010-LoopClosure/run_all_detectors.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +DATASET_FOLDER="" +GT_FILE="" +MEMORY_THR=0 +if [ $# -ge 2 ] +then + DATASET_FOLDER=$1 + GT_FILE=$2 +else +echo "Usage: run_all_detectors.sh \"dataset folder\" \"ground truth file\" [\"Rtabmap/MemoryThr=0\"]" +exit +fi + +if [ $# -ge 3 ] +then + MEMORY_THR=$3 +fi + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" + +$SCRIPT_DIR/run_bow.sh $DATASET_FOLDER $GT_FILE $MEMORY_THR 0 false +mv LogF.txt $DATASET_FOLDER/SurfLogF.txt +mv LogI.txt $DATASET_FOLDER/SurfLogI.txt +$SCRIPT_DIR/run_bow.sh $DATASET_FOLDER $GT_FILE $MEMORY_THR 1 false +mv LogF.txt $DATASET_FOLDER/SiftLogF.txt +mv LogI.txt $DATASET_FOLDER/SiftLogI.txt +$SCRIPT_DIR/run_bow.sh $DATASET_FOLDER $GT_FILE $MEMORY_THR 1 true +mv LogF.txt $DATASET_FOLDER/CudaSiftLogF.txt +mv LogI.txt $DATASET_FOLDER/CudaSiftLogI.txt +$SCRIPT_DIR/run_bow.sh $DATASET_FOLDER $GT_FILE $MEMORY_THR 6 false +mv LogF.txt $DATASET_FOLDER/GfttBriefLogF.txt +mv LogI.txt $DATASET_FOLDER/GfttBriefLogI.txt +#$SCRIPT_DIR/run_bow.sh $DATASET_FOLDER $GT_FILE $MEMORY_THR 11 false +#mv LogF.txt $DATASET_FOLDER/SuperPointLogF.txt +#mv LogI.txt $DATASET_FOLDER/SuperPointLogI.txt + diff --git a/archive/2010-LoopClosure/run_bow.sh b/archive/2010-LoopClosure/run_bow.sh index 087eceaece..995f37aefd 100755 --- a/archive/2010-LoopClosure/run_bow.sh +++ b/archive/2010-LoopClosure/run_bow.sh @@ -2,22 +2,38 @@ DATASET_FOLDER="" GT_FILE="" -if [ $# -eq 2 ] +MEMORY_THR=300 +DETECTOR=0 +GPU=false +if [ $# -ge 2 ] then DATASET_FOLDER=$1 GT_FILE=$2 else -echo "Usage: run_bow.sh \"dataset folder\" \"ground truth file\"" +echo "Usage: run_bow.sh \"dataset folder\" \"ground truth file\" [\"Rtabmap/MemoryThr=300\"] [\"Kp/DetectorStrategy=0\"] [\"GPU=false\"]" exit fi +if [ $# -ge 3 ] +then + MEMORY_THR=$3 +fi +if [ $# -ge 4 ] +then + DETECTOR=$4 +fi +if [ $# -ge 5 ] +then + GPU=$5 +fi + rtabmap-console \ -quiet \ --Rtabmap/StatisticLogged true\ --Rtabmap/StatisticLoggedHeaders false\ - --Kp/DetectorStrategy 0\ + --Kp/DetectorStrategy $DETECTOR\ --SURF/HessianThreshold 150\ - --Rtabmap/MemoryThr 300\ + --Rtabmap/MemoryThr $MEMORY_THR\ --Rtabmap/LoopRatio 0.9\ --Mem/STMSize 30\ --Vis/MaxFeatures 400\ @@ -27,6 +43,11 @@ rtabmap-console \ --Mem/BadSignaturesIgnored true\ --Mem/RehearsalSimilarity 0.20\ --Mem/RecentWmRatio 0.20\ + --FAST/Gpu $GPU\ + --GFTT/Gpu $GPU\ + --ORB/Gpu $GPU\ + --SIFT/Gpu $GPU\ + --SURF/GpuVersion $GPU\ -gt "$GT_FILE"\ "$DATASET_FOLDER" diff --git a/corelib/include/rtabmap/core/Features2d.h b/corelib/include/rtabmap/core/Features2d.h index ff27600094..a08b1e7a7f 100644 --- a/corelib/include/rtabmap/core/Features2d.h +++ b/corelib/include/rtabmap/core/Features2d.h @@ -45,6 +45,7 @@ namespace gpu { class SURF_GPU; class ORB_GPU; class FAST_GPU; + class GoodFeaturesToTrackDetector_GPU; } } typedef cv::SIFT CV_SIFT; @@ -57,13 +58,14 @@ typedef cv::BRISK CV_BRISK; typedef cv::gpu::SURF_GPU CV_SURF_GPU; typedef cv::gpu::ORB_GPU CV_ORB_GPU; typedef cv::gpu::FAST_GPU CV_FAST_GPU; +typedef cv::gpu::GoodFeaturesToTrackDetector_GPU CV_GFTT_GPU; #else namespace cv{ namespace xfeatures2d { class FREAK; class DAISY; class BriefDescriptorExtractor; -#if CV_MAJOR_VERSION < 3 || (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION <= 3) || (CV_MAJOR_VERSION == 3 && (CV_MINOR_VERSION < 4 || (CV_MINOR_VERSION==4 && CV_SUBMINOR_VERSION<11))) +#if (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION <= 3) || (CV_MAJOR_VERSION == 3 && (CV_MINOR_VERSION < 4 || (CV_MINOR_VERSION==4 && CV_SUBMINOR_VERSION<11))) class SIFT; #endif class SURF; @@ -72,9 +74,10 @@ namespace cuda { class FastFeatureDetector; class ORB; class SURF_CUDA; +class CornersDetector; } } -#if CV_MAJOR_VERSION < 3 || (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION <= 3) || (CV_MAJOR_VERSION == 3 && (CV_MINOR_VERSION < 4 || (CV_MINOR_VERSION==4 && CV_SUBMINOR_VERSION<11))) +#if (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION <= 3) || (CV_MAJOR_VERSION == 3 && (CV_MINOR_VERSION < 4 || (CV_MINOR_VERSION==4 && CV_SUBMINOR_VERSION<11))) typedef cv::xfeatures2d::SIFT CV_SIFT; #else typedef cv::SIFT CV_SIFT; // SIFT is back in features2d since 4.4.0 / 3.4.11 @@ -90,8 +93,12 @@ typedef cv::ORB CV_ORB; typedef cv::cuda::SURF_CUDA CV_SURF_GPU; typedef cv::cuda::ORB CV_ORB_GPU; typedef cv::cuda::FastFeatureDetector CV_FAST_GPU; +typedef cv::cuda::CornersDetector CV_GFTT_GPU; #endif +// CudaSift fork: https://github.com/matlabbe/CudaSift +class SiftData; + namespace rtabmap { class ORBextractor; @@ -294,9 +301,18 @@ class RTABMAP_CORE_EXPORT SIFT : public Feature2D double contrastThreshold_; double edgeThreshold_; double sigma_; + bool preciseUpscale_; bool rootSIFT_; - - cv::Ptr _sift; + bool gpu_; + float guaussianThreshold_; + bool upscale_; + + cv::Ptr sift_; + SiftData * cudaSiftData_; + float * cudaSiftMemory_; + cv::Size cudaSiftMemorySize_; + cv::Mat cudaSiftDescriptors_; + bool cudaSiftUpscaling_; }; //ORB @@ -425,8 +441,10 @@ class RTABMAP_CORE_EXPORT GFTT : public Feature2D int _blockSize; bool _useHarrisDetector; double _k; + bool _gpu; cv::Ptr _gftt; + cv::Ptr _gpuGftt; }; //GFTT_BRIEF diff --git a/corelib/include/rtabmap/core/Parameters.h b/corelib/include/rtabmap/core/Parameters.h index ce262e27f6..ee4da294d5 100644 --- a/corelib/include/rtabmap/core/Parameters.h +++ b/corelib/include/rtabmap/core/Parameters.h @@ -281,12 +281,15 @@ class RTABMAP_CORE_EXPORT Parameters RTABMAP_PARAM(SURF, GpuVersion, bool, false, "GPU-SURF: Use GPU version of SURF. This option is enabled only if OpenCV is built with CUDA and GPUs are detected."); RTABMAP_PARAM(SURF, GpuKeypointsRatio, float, 0.01, "Used with SURF GPU."); - RTABMAP_PARAM(SIFT, NFeatures, int, 0, "The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast)."); - RTABMAP_PARAM(SIFT, NOctaveLayers, int, 3, "The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution."); - RTABMAP_PARAM(SIFT, ContrastThreshold, double, 0.04, "The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector."); + RTABMAP_PARAM(SIFT, NOctaveLayers, int, 3, "The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. Not used by CudaSift, the number of octaves is still computed automatically."); + RTABMAP_PARAM(SIFT, ContrastThreshold, double, 0.04, uFormat("The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. Not used by CudaSift (see %s instead).", kSIFTGaussianThreshold().c_str())); RTABMAP_PARAM(SIFT, EdgeThreshold, double, 10, "The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained)."); RTABMAP_PARAM(SIFT, Sigma, double, 1.6, "The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number."); - RTABMAP_PARAM(SIFT, RootSIFT, bool, false, "Apply RootSIFT normalization of the descriptors."); + RTABMAP_PARAM(SIFT, PreciseUpscale, bool, false, "Whether to enable precise upscaling in the scale pyramid (OpenCV >= 4.8)."); + RTABMAP_PARAM(SIFT, RootSIFT, bool, false, "Apply RootSIFT normalization of the descriptors."); + RTABMAP_PARAM(SIFT, Gpu, bool, false, "CudaSift: Use GPU version of SIFT. This option is enabled only if RTAB-Map is built with CudaSift dependency and GPUs are detected."); + RTABMAP_PARAM(SIFT, GaussianThreshold, float, 2.0, "CudaSift: Threshold on difference of Gaussians for feature pruning. The higher the threshold, the less features are produced by the detector."); + RTABMAP_PARAM(SIFT, Upscale, bool, false, "CudaSift: Whether to enable upscaling."); RTABMAP_PARAM(BRIEF, Bytes, int, 32, "Bytes is a length of descriptor in bytes. It can be equal 16, 32 or 64 bytes."); @@ -305,6 +308,7 @@ class RTABMAP_CORE_EXPORT Parameters RTABMAP_PARAM(GFTT, BlockSize, int, 3, ""); RTABMAP_PARAM(GFTT, UseHarrisDetector, bool, false, ""); RTABMAP_PARAM(GFTT, K, double, 0.04, ""); + RTABMAP_PARAM(GFTT, Gpu, bool, false, "GPU-GFTT: Use GPU version of GFTT. This option is enabled only if OpenCV>=3 is built with CUDA and GPUs are detected."); RTABMAP_PARAM(ORB, ScaleFactor, float, 2, "Pyramid decimation ratio, greater than 1. scaleFactor==2 means the classical pyramid, where each next level has 4x less pixels than the previous, but such a big scale factor will degrade feature matching scores dramatically. On the other hand, too close to 1 scale factor will mean that to cover certain scale range you will need more pyramid levels and so the speed will suffer."); RTABMAP_PARAM(ORB, NLevels, int, 3, "The number of pyramid levels. The smallest level will have linear size equal to input_image_linear_size/pow(scaleFactor, nlevels)."); @@ -714,6 +718,7 @@ class RTABMAP_CORE_EXPORT Parameters RTABMAP_PARAM(Vis, CorFlowIterations, int, 30, uFormat("[%s=1] See cv::calcOpticalFlowPyrLK(). Used for optical flow approach.", kVisCorType().c_str())); RTABMAP_PARAM(Vis, CorFlowEps, float, 0.01, uFormat("[%s=1] See cv::calcOpticalFlowPyrLK(). Used for optical flow approach.", kVisCorType().c_str())); RTABMAP_PARAM(Vis, CorFlowMaxLevel, int, 3, uFormat("[%s=1] See cv::calcOpticalFlowPyrLK(). Used for optical flow approach.", kVisCorType().c_str())); + RTABMAP_PARAM(Vis, CorFlowGpu, bool, false, uFormat("[%s=1] Enable GPU version of the optical flow approach (only available if OpenCV is built with CUDA).", kVisCorType().c_str())); #if defined(RTABMAP_G2O) || defined(RTABMAP_ORB_SLAM) RTABMAP_PARAM(Vis, BundleAdjustment, int, 1, "Optimization with bundle adjustment: 0=disabled, 1=g2o, 2=cvsba, 3=Ceres."); #else @@ -791,6 +796,7 @@ class RTABMAP_CORE_EXPORT Parameters RTABMAP_PARAM(Stereo, OpticalFlow, bool, true, "Use optical flow to find stereo correspondences, otherwise a simple block matching approach is used."); RTABMAP_PARAM(Stereo, SSD, bool, true, uFormat("[%s=false] Use Sum of Squared Differences (SSD) window, otherwise Sum of Absolute Differences (SAD) window is used.", kStereoOpticalFlow().c_str())); RTABMAP_PARAM(Stereo, Eps, double, 0.01, uFormat("[%s=true] Epsilon stop criterion.", kStereoOpticalFlow().c_str())); + RTABMAP_PARAM(Stereo, Gpu, bool, false, uFormat("[%s=true] Enable GPU version of the optical flow approach (only available if OpenCV is built with CUDA).", kStereoOpticalFlow().c_str())); RTABMAP_PARAM(Stereo, DenseStrategy, int, 0, "0=cv::StereoBM, 1=cv::StereoSGBM"); diff --git a/corelib/include/rtabmap/core/RegistrationVis.h b/corelib/include/rtabmap/core/RegistrationVis.h index 68c176f0db..520be30a89 100644 --- a/corelib/include/rtabmap/core/RegistrationVis.h +++ b/corelib/include/rtabmap/core/RegistrationVis.h @@ -91,6 +91,7 @@ class RTABMAP_CORE_EXPORT RegistrationVis : public Registration int _flowIterations; float _flowEps; int _flowMaxLevel; + bool _flowGpu; float _nndr; int _nnType; bool _gmsWithRotation; diff --git a/corelib/include/rtabmap/core/SensorData.h b/corelib/include/rtabmap/core/SensorData.h index 57d7452ddf..1a2ad1ab66 100644 --- a/corelib/include/rtabmap/core/SensorData.h +++ b/corelib/include/rtabmap/core/SensorData.h @@ -314,6 +314,13 @@ class RTABMAP_CORE_EXPORT SensorData bool isPointVisibleFromCameras(const cv::Point3f & pt) const; // assuming point is in robot frame +#ifdef HAVE_OPENCV_CUDEV + const cv::cuda::GpuMat & imageRawGpu() const {return _imageRawGpu;} + void setImageRawGpu(const cv::cuda::GpuMat & image) {_imageRawGpu = image;} + const cv::cuda::GpuMat & depthOrRightRawGpu() const {return _depthOrRightRawGpu;} + void setDepthOrRightRawGpu(const cv::cuda::GpuMat & image) {_depthOrRightRawGpu = image;} +#endif + private: int _id; double _stamp; @@ -365,6 +372,14 @@ class RTABMAP_CORE_EXPORT SensorData GPS gps_; IMU imu_; + +#ifdef HAVE_OPENCV_CUDEV + // Temporary buffers used for some optimizations, + // particulary to avoid host<->device copies if same + // data are re-used + cv::cuda::GpuMat _imageRawGpu; + cv::cuda::GpuMat _depthOrRightRawGpu; +#endif }; } diff --git a/corelib/include/rtabmap/core/Stereo.h b/corelib/include/rtabmap/core/Stereo.h index 9c06e2a1dc..497f8067b4 100644 --- a/corelib/include/rtabmap/core/Stereo.h +++ b/corelib/include/rtabmap/core/Stereo.h @@ -49,6 +49,13 @@ class RTABMAP_CORE_EXPORT Stereo { const cv::Mat & rightImage, const std::vector & leftCorners, std::vector & status) const; +#ifdef HAVE_OPENCV_CUDEV + virtual std::vector computeCorrespondences( + const cv::cuda::GpuMat & leftImage, + const cv::cuda::GpuMat & rightImage, + const std::vector & leftCorners, + std::vector & status) const; +#endif cv::Size winSize() const {return cv::Size(winWidth_, winHeight_);} int iterations() const {return iterations_;} @@ -56,6 +63,7 @@ class RTABMAP_CORE_EXPORT Stereo { float minDisparity() const {return minDisparity_;} float maxDisparity() const {return maxDisparity_;} bool winSSD() const {return winSSD_;} + virtual bool isGpuEnabled() const {return false;} private: int winWidth_; @@ -78,11 +86,27 @@ class RTABMAP_CORE_EXPORT StereoOpticalFlow : public Stereo { const cv::Mat & rightImage, const std::vector & leftCorners, std::vector & status) const; + +#ifdef HAVE_OPENCV_CUDEV + virtual std::vector computeCorrespondences( + const cv::cuda::GpuMat & leftImage, + const cv::cuda::GpuMat & rightImage, + const std::vector & leftCorners, + std::vector & status) const; +#endif float epsilon() const {return epsilon_;} + virtual bool isGpuEnabled() const; + +private: + void updateStatus( + const std::vector & leftCorners, + const std::vector & rightCorners, + std::vector & status) const; private: float epsilon_; + bool gpu_; }; } /* namespace rtabmap */ diff --git a/corelib/include/rtabmap/core/camera/CameraStereoZed.h b/corelib/include/rtabmap/core/camera/CameraStereoZed.h index 640eec6c5a..de3a94c2e6 100644 --- a/corelib/include/rtabmap/core/camera/CameraStereoZed.h +++ b/corelib/include/rtabmap/core/camera/CameraStereoZed.h @@ -49,7 +49,7 @@ class RTABMAP_CORE_EXPORT CameraStereoZed : public: CameraStereoZed( int deviceId, - int resolution = 6, // 0=HD2K, 1=HD1080, 2=HD1200, 3=HD720, 4=SVGA, 5=VGA, 6=AUTO + int resolution = -1, // -1 = AUTO, 0=HD4K 1=HD2K 2=HD1080 3=HD1200 4=HD720 5=SVGA 6=VGA int quality = 1, // 0=NONE, 1=PERFORMANCE, 2=QUALITY int sensingMode = 0,// 0=STANDARD, 1=FILL int confidenceThr = 100, diff --git a/corelib/src/CMakeLists.txt b/corelib/src/CMakeLists.txt index 5c46f432ea..aadff75ae8 100644 --- a/corelib/src/CMakeLists.txt +++ b/corelib/src/CMakeLists.txt @@ -539,6 +539,14 @@ IF(PDAL_FOUND) ENDIF(PDAL_VERSION VERSION_LESS "1.7") ENDIF(PDAL_FOUND) +IF(CudaSift_FOUND) + #target + SET(LIBRARIES + ${LIBRARIES} + cudasift + ) +ENDIF(CudaSift_FOUND) + IF(loam_velodyne_FOUND) SET(INCLUDE_DIRS diff --git a/corelib/src/Features2d.cpp b/corelib/src/Features2d.cpp index c306b5fd61..80a2ece26c 100644 --- a/corelib/src/Features2d.cpp +++ b/corelib/src/Features2d.cpp @@ -75,11 +75,18 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifdef HAVE_OPENCV_CUDAFEATURES2D #include #endif +#ifdef HAVE_OPENCV_CUDAIMGPROC +#include +#endif #ifdef RTABMAP_FASTCV #include #endif +#ifdef RTABMAP_CUDASIFT +#include +#include +#endif namespace rtabmap { void Feature2D::filterKeypointsByDepth( @@ -329,7 +336,7 @@ void Feature2D::limitKeypoints(std::vector & keypoints, std::vecto } else { - ULOGGER_DEBUG("too much words (%d), removing words with the hessian threshold", keypoints.size()); + ULOGGER_DEBUG("too many words (%d), removing words with the hessian threshold", keypoints.size()); // Remove words under the new hessian threshold // Sort words by hessian @@ -858,15 +865,36 @@ std::vector Feature2D::generateKeypoints3D( data.stereoCameraModels()[0].isValidForProjection()) { //stereo - cv::Mat imageMono; - // convert to grayscale - if(data.imageRaw().channels() > 1) + cv::Mat imageLeft = data.imageRaw(); + cv::Mat imageRight = data.rightRaw(); +#ifdef HAVE_OPENCV_CUDEV + cv::cuda::GpuMat d_imageLeft; + cv::cuda::GpuMat d_imageRight; + if(_stereo->isGpuEnabled()) { - cv::cvtColor(data.imageRaw(), imageMono, cv::COLOR_BGR2GRAY); + d_imageLeft = data.imageRawGpu(); + if(d_imageLeft.empty()) { + d_imageLeft = cv::cuda::GpuMat(imageLeft); + } + // convert to grayscale + if(d_imageLeft.channels() > 1) { + cv::cuda::GpuMat tmp; + cv::cuda::cvtColor(d_imageLeft, tmp, cv::COLOR_BGR2GRAY); + d_imageLeft = tmp; + } + d_imageRight = data.depthOrRightRawGpu(); + if(d_imageRight.empty()) { + d_imageRight = cv::cuda::GpuMat(imageRight); + } } else +#endif { - imageMono = data.imageRaw(); + // convert to grayscale (right image should be already grayscale) + if(imageLeft.channels() > 1) + { + cv::cvtColor(data.imageRaw(), imageLeft, cv::COLOR_BGR2GRAY); + } } std::vector leftCorners; @@ -877,11 +905,24 @@ std::vector Feature2D::generateKeypoints3D( if(data.stereoCameraModels().size() == 1) { std::vector status; - rightCorners = _stereo->computeCorrespondences( - imageMono, - data.rightRaw(), - leftCorners, - status); +#ifdef HAVE_OPENCV_CUDEV + if(_stereo->isGpuEnabled()) + { + rightCorners = _stereo->computeCorrespondences( + d_imageLeft, + d_imageRight, + leftCorners, + status); + } + else +#endif + { + rightCorners = _stereo->computeCorrespondences( + imageLeft, + imageRight, + leftCorners, + status); + } if(ULogger::level() >= ULogger::kWarning) { @@ -916,8 +957,8 @@ std::vector Feature2D::generateKeypoints3D( } else { - int subImageWith = imageMono.cols / data.stereoCameraModels().size(); - UASSERT(imageMono.cols % subImageWith == 0); + int subImageWith = imageLeft.cols / data.stereoCameraModels().size(); + UASSERT(imageLeft.cols % subImageWith == 0); std::vector > subLeftCorners(data.stereoCameraModels().size()); std::vector > subIndex(data.stereoCameraModels().size()); // Assign keypoints per camera @@ -937,11 +978,24 @@ std::vector Feature2D::generateKeypoints3D( if(!subLeftCorners[i].empty()) { std::vector status; - rightCorners = _stereo->computeCorrespondences( - imageMono.colRange(cv::Range(subImageWith*i, subImageWith*(i+1))), - data.rightRaw().colRange(cv::Range(subImageWith*i, subImageWith*(i+1))), +#ifdef HAVE_OPENCV_CUDEV + if(_stereo->isGpuEnabled()) + { + rightCorners = _stereo->computeCorrespondences( + d_imageLeft.colRange(cv::Range(subImageWith*i, subImageWith*(i+1))), + d_imageRight.colRange(cv::Range(subImageWith*i, subImageWith*(i+1))), + subLeftCorners[i], + status); + } + else +#endif + { + rightCorners = _stereo->computeCorrespondences( + imageLeft.colRange(cv::Range(subImageWith*i, subImageWith*(i+1))), + imageRight.colRange(cv::Range(subImageWith*i, subImageWith*(i+1))), subLeftCorners[i], status); + } std::vector subKeypoints3D = util3d::generateKeypoints3DStereo( subLeftCorners[i], @@ -1143,13 +1197,29 @@ SIFT::SIFT(const ParametersMap & parameters) : contrastThreshold_(Parameters::defaultSIFTContrastThreshold()), edgeThreshold_(Parameters::defaultSIFTEdgeThreshold()), sigma_(Parameters::defaultSIFTSigma()), - rootSIFT_(Parameters::defaultSIFTRootSIFT()) + preciseUpscale_(Parameters::defaultSIFTPreciseUpscale()), + rootSIFT_(Parameters::defaultSIFTRootSIFT()), + gpu_(Parameters::defaultSIFTGpu()), + guaussianThreshold_(Parameters::defaultSIFTGaussianThreshold()), + upscale_(Parameters::defaultSIFTUpscale()), + cudaSiftData_(0), + cudaSiftMemory_(0), + cudaSiftUpscaling_(upscale_) { parseParameters(parameters); } SIFT::~SIFT() { +#ifdef RTABMAP_CUDASIFT + if(cudaSiftData_) { + FreeSiftData(*cudaSiftData_); + delete cudaSiftData_; + } + if(cudaSiftMemory_) { + FreeSiftTempMemory(cudaSiftMemory_); + } +#endif } void SIFT::parseParameters(const ParametersMap & parameters) @@ -1160,21 +1230,45 @@ void SIFT::parseParameters(const ParametersMap & parameters) Parameters::parse(parameters, Parameters::kSIFTEdgeThreshold(), edgeThreshold_); Parameters::parse(parameters, Parameters::kSIFTNOctaveLayers(), nOctaveLayers_); Parameters::parse(parameters, Parameters::kSIFTSigma(), sigma_); + Parameters::parse(parameters, Parameters::kSIFTPreciseUpscale(), preciseUpscale_); Parameters::parse(parameters, Parameters::kSIFTRootSIFT(), rootSIFT_); - -#if CV_MAJOR_VERSION < 3 || (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION <= 3) || (CV_MAJOR_VERSION == 3 && (CV_MINOR_VERSION < 4 || (CV_MINOR_VERSION==4 && CV_SUBMINOR_VERSION<11))) + Parameters::parse(parameters, Parameters::kSIFTGpu(), gpu_); + Parameters::parse(parameters, Parameters::kSIFTGaussianThreshold(), guaussianThreshold_); + Parameters::parse(parameters, Parameters::kSIFTUpscale(), upscale_); + + if(gpu_) + { +#ifdef RTABMAP_CUDASIFT + UDEBUG("Init SiftData"); + if(cudaSiftData_ == 0) { + cudaSiftData_ = new SiftData(); + InitSiftData(*cudaSiftData_, 8192, true, true); + } +#else + UWARN("RTAB-Map is not built with CudaSift so %s cannot be used!", Parameters::kSIFTGpu().c_str()); + gpu_ = false; +#endif + } + + if(!gpu_) + { + #if CV_MAJOR_VERSION < 3 || (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION <= 3) || (CV_MAJOR_VERSION == 3 && (CV_MINOR_VERSION < 4 || (CV_MINOR_VERSION==4 && CV_SUBMINOR_VERSION<11))) #ifdef RTABMAP_NONFREE #if CV_MAJOR_VERSION < 3 - _sift = cv::Ptr(new CV_SIFT(this->getMaxFeatures(), nOctaveLayers_, contrastThreshold_, edgeThreshold_, sigma_)); + sift_ = cv::Ptr(new CV_SIFT(this->getMaxFeatures(), nOctaveLayers_, contrastThreshold_, edgeThreshold_, sigma_)); #else - _sift = CV_SIFT::create(this->getMaxFeatures(), nOctaveLayers_, contrastThreshold_, edgeThreshold_, sigma_); + sift_ = CV_SIFT::create(this->getMaxFeatures(), nOctaveLayers_, contrastThreshold_, edgeThreshold_, sigma_); #endif #else - UWARN("RTAB-Map is not built with OpenCV nonfree module so SIFT cannot be used!"); + UWARN("RTAB-Map is not built with OpenCV nonfree module so SIFT cannot be used!"); #endif +#elif CV_MAJOR_VERSION>4 || (CV_MAJOR_VERSION==4 && CV_MINOR_VERSION>=8)// >=4.8 + sift_ = CV_SIFT::create(this->getMaxFeatures(), nOctaveLayers_, contrastThreshold_, edgeThreshold_, sigma_, preciseUpscale_); #else // >=4.4, >=3.4.11 - _sift = CV_SIFT::create(this->getMaxFeatures(), nOctaveLayers_, contrastThreshold_, edgeThreshold_, sigma_); + sift_ = CV_SIFT::create(this->getMaxFeatures(), nOctaveLayers_, contrastThreshold_, edgeThreshold_, sigma_); #endif + } + } std::vector SIFT::generateKeypointsImpl(const cv::Mat & image, const cv::Rect & roi, const cv::Mat & mask) @@ -1182,35 +1276,149 @@ std::vector SIFT::generateKeypointsImpl(const cv::Mat & image, con UASSERT(!image.empty() && image.channels() == 1 && image.depth() == CV_8U); std::vector keypoints; cv::Mat imgRoi(image, roi); - cv::Mat maskRoi; - if(!mask.empty()) +#ifdef RTABMAP_CUDASIFT + if(gpu_) { - maskRoi = cv::Mat(mask, roi); + /* Read image using OpenCV and convert to floating point. */ + int w = imgRoi.cols; + int h = imgRoi.rows; + cv::Mat img_h; + imgRoi.convertTo(img_h, CV_32FC1); + CudaImage img_d; + img_d.Allocate(w, h, iAlignUp(w, 128), false, NULL, (float*)img_h.data); + img_d.Download(); + + // Compute number of octaves like OpenCV based on resolution + // ref: https://github.com/opencv/opencv/blob/4d665419992dda6e40364f741ae4765176b64bb0/modules/features2d/src/sift.dispatch.cpp#L538 + // *** stack smashing detected *** if "-2" term is higher + int numOctaves = cvRound(std::log( (double)std::min(w*(upscale_?2:1), h*(upscale_?2:1)) ) / std::log(2.) - (upscale_?3:2)); + if(numOctaves < 1) { + numOctaves = 1; + } + else if (numOctaves>7) + { + numOctaves = 7; // hard-coded limit in CudaSift + } + float initBlur = sigma_; /* Amount of initial Gaussian blurring in standard deviations */ + float thresh = guaussianThreshold_; /* Threshold on difference of Gaussians for feature pruning */ + float edgeLimit = edgeThreshold_; + float minScale = 0.0f; /* Minimum acceptable scale to remove fine-scale features */ + UDEBUG("numOctaves=%d initBlur=%f thresh=%f edgeLimit=%f minScale=%f upScale=%s w=%d h=%d", numOctaves, initBlur, thresh, edgeLimit, minScale, upscale_?"true":"false", w, h); + + if(cudaSiftMemory_ && (cudaSiftMemorySize_ != cv::Size(w, h) || cudaSiftUpscaling_ != upscale_)) { + // Resolution changed, reset buffer + FreeSiftTempMemory(cudaSiftMemory_); + cudaSiftMemory_ = 0; + } + + if(cudaSiftMemory_ == 0) { + cudaSiftMemory_ = AllocSiftTempMemory(w, h, numOctaves, upscale_); + UASSERT(cudaSiftMemory_ != 0); + cudaSiftMemorySize_ = cv::Size(w, h); + cudaSiftUpscaling_ = upscale_; + } + + ExtractSift(*cudaSiftData_, img_d, numOctaves, initBlur, thresh, edgeLimit, minScale, upscale_, cudaSiftMemory_); + UDEBUG("%d features extracted", cudaSiftData_->numPts); + + // Convert CudaSift into OpenCV format + cudaSiftDescriptors_ = cv::Mat(); + if(cudaSiftData_->numPts) + { + int maxKeypoints = this->getMaxFeatures(); + if(maxKeypoints == 0 || maxKeypoints > cudaSiftData_->numPts) + { + maxKeypoints = cudaSiftData_->numPts; + } + + // Re-using same implementation of limitKeypoints() directly here to avoid doubling memory copies + // Sort words by hessian + std::multimap hessianMap; // + for(int i=0; inumPts; ++i) + { + // Ignore keypoints with invalid descriptors + float *desc = cudaSiftData_->h_data[i].data; + if(desc[0] != 0 && desc[0] == desc[63] && desc[0] == desc[127]) + { + //UWARN("Invalid decsriptor? skipping: %f,%f,%f", cudaSiftData_->h_data[i].xpos, cudaSiftData_->h_data[i].ypos, cudaSiftData_->h_data[i].scale); + //std::cout << cv::Mat(1, 128*4, CV_8UC1, desc) << std::endl; + continue; + } + //Keep track of the data, to be easier to manage the data in the next step + hessianMap.insert(std::pair(cudaSiftData_->h_data[i].sharpness, i)); + } + + if((int)hessianMap.size() < maxKeypoints) + { + maxKeypoints = hessianMap.size(); + } + + std::multimap::reverse_iterator iter = hessianMap.rbegin(); + keypoints.resize(maxKeypoints); + cudaSiftDescriptors_ = cv::Mat(maxKeypoints, 128, CV_32FC1); + for(unsigned int k=0; ksecond; + float *desc = cudaSiftData_->h_data[i].data; + cv::Mat(1, 128, CV_32FC1, desc).copyTo(cudaSiftDescriptors_.row(k)); + keypoints[k].pt.x = cudaSiftData_->h_data[i].xpos; + keypoints[k].pt.y = cudaSiftData_->h_data[i].ypos; + keypoints[k].size = 2.0f*cudaSiftData_->h_data[i].scale; // x2 because the scale is more like a radius than a diameter, see CudaSift's ExtractSiftDescriptors function to see how they convert scale to patch size + keypoints[k].angle = cudaSiftData_->h_data[i].orientation; + keypoints[k].response = cudaSiftData_->h_data[i].sharpness; + keypoints[k].octave = log2(cudaSiftData_->h_data[i].subsampling)-(upscale_?1:0); + } + } } + else +#endif + { + cv::Mat maskRoi; + if(!mask.empty()) + { + maskRoi = cv::Mat(mask, roi); + } + #if CV_MAJOR_VERSION < 3 || (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION <= 3) || (CV_MAJOR_VERSION == 3 && (CV_MINOR_VERSION < 4 || (CV_MINOR_VERSION==4 && CV_SUBMINOR_VERSION<11))) #ifdef RTABMAP_NONFREE - _sift->detect(imgRoi, keypoints, maskRoi); // Opencv keypoints + sift_->detect(imgRoi, keypoints, maskRoi); // Opencv keypoints #else - UWARN("RTAB-Map is not built with OpenCV nonfree module so SIFT cannot be used!"); + UWARN("RTAB-Map is not built with OpenCV nonfree module so SIFT cannot be used!"); #endif #else // >=4.4, >=3.4.11 - _sift->detect(imgRoi, keypoints, maskRoi); // Opencv keypoints + sift_->detect(imgRoi, keypoints, maskRoi); // Opencv keypoints #endif + } return keypoints; } cv::Mat SIFT::generateDescriptorsImpl(const cv::Mat & image, std::vector & keypoints) const { +#ifdef RTABMAP_CUDASIFT + if(gpu_) + { + if((int)keypoints.size() == cudaSiftDescriptors_.rows) + { + return cudaSiftDescriptors_.clone(); + } + else + { + UERROR("CudaSift: keypoints size %ld is not equal to extracted descriptors size %d", keypoints.size(), cudaSiftDescriptors_.rows); + return cv::Mat(); + } + } +#endif + UASSERT(!image.empty() && image.channels() == 1 && image.depth() == CV_8U); cv::Mat descriptors; #if CV_MAJOR_VERSION < 3 || (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION <= 3) || (CV_MAJOR_VERSION == 3 && (CV_MINOR_VERSION < 4 || (CV_MINOR_VERSION==4 && CV_SUBMINOR_VERSION<11))) #ifdef RTABMAP_NONFREE - _sift->compute(image, keypoints, descriptors); + sift_->compute(image, keypoints, descriptors); #else UWARN("RTAB-Map is not built with OpenCV nonfree module so SIFT cannot be used!"); #endif #else // >=4.4, >=3.4.11 - _sift->compute(image, keypoints, descriptors); + sift_->compute(image, keypoints, descriptors); #endif if( rootSIFT_ && !descriptors.empty()) { @@ -1790,7 +1998,8 @@ GFTT::GFTT(const ParametersMap & parameters) : _minDistance(Parameters::defaultGFTTMinDistance()), _blockSize(Parameters::defaultGFTTBlockSize()), _useHarrisDetector(Parameters::defaultGFTTUseHarrisDetector()), - _k(Parameters::defaultGFTTK()) + _k(Parameters::defaultGFTTK()), + _gpu(Parameters::defaultGFTTGpu()) { parseParameters(parameters); } @@ -1808,12 +2017,45 @@ void GFTT::parseParameters(const ParametersMap & parameters) Parameters::parse(parameters, Parameters::kGFTTBlockSize(), _blockSize); Parameters::parse(parameters, Parameters::kGFTTUseHarrisDetector(), _useHarrisDetector); Parameters::parse(parameters, Parameters::kGFTTK(), _k); + Parameters::parse(parameters, Parameters::kGFTTGpu(), _gpu); #if CV_MAJOR_VERSION < 3 - _gftt = cv::Ptr(new CV_GFTT(this->getMaxFeatures(), _qualityLevel, _minDistance, _blockSize, _useHarrisDetector ,_k)); + if(_gpu) + { + UWARN("GPU version of GFTT is not implemented for OpenCV<3! Using CPU version instead..."); + _gpu = false; + } +#endif + +#ifdef HAVE_OPENCV_CUDAIMGPROC + if(_gpu && cv::cuda::getCudaEnabledDeviceCount() == 0) + { + UWARN("GPU version of GFTT not available! Using CPU version instead..."); + _gpu = false; + } #else - _gftt = CV_GFTT::create(this->getMaxFeatures(), _qualityLevel, _minDistance, _blockSize, _useHarrisDetector ,_k); + if(_gpu) + { + UWARN("GPU version of GFTT not available (OpenCV cudaimageproc module)! Using CPU version instead..."); + _gpu = false; + } #endif + if(_gpu) + { +#ifdef HAVE_OPENCV_CUDAIMGPROC + _gpuGftt = cv::cuda::createGoodFeaturesToTrackDetector(CV_8UC1, this->getMaxFeatures(), _qualityLevel, _minDistance, _blockSize, _useHarrisDetector ,_k); +#else + UFATAL("not supposed to be here!"); +#endif + } + else + { +#if CV_MAJOR_VERSION < 3 + _gftt = cv::Ptr(new CV_GFTT(this->getMaxFeatures(), _qualityLevel, _minDistance, _blockSize, _useHarrisDetector ,_k)); +#else + _gftt = CV_GFTT::create(this->getMaxFeatures(), _qualityLevel, _minDistance, _blockSize, _useHarrisDetector ,_k); +#endif + } } std::vector GFTT::generateKeypointsImpl(const cv::Mat & image, const cv::Rect & roi, const cv::Mat & mask) @@ -1826,7 +2068,25 @@ std::vector GFTT::generateKeypointsImpl(const cv::Mat & image, con { maskRoi = cv::Mat(mask, roi); } - _gftt->detect(imgRoi, keypoints, maskRoi); // Opencv keypoints + +#if CV_MAJOR_VERSION >= 3 && defined(HAVE_OPENCV_CUDAIMGPROC) + if(_gpu) + { + cv::cuda::GpuMat imgGpu(imgRoi); + cv::cuda::GpuMat maskGpu(maskRoi); + cv::cuda::GpuMat cornersGpu; + _gpuGftt->detect(imgGpu, cornersGpu, maskGpu); + std::vector corners(cornersGpu.cols); + cv::Mat cornersMat(1, cornersGpu.cols, CV_32FC2, (void*)&corners[0]); + cornersGpu.download(cornersMat); + cv::KeyPoint::convert(corners, keypoints, _blockSize); + } + else +#endif + { + _gftt->detect(imgRoi, keypoints, maskRoi); // Opencv keypoints + } + return keypoints; } diff --git a/corelib/src/Parameters.cpp b/corelib/src/Parameters.cpp index 0d6d3a22b0..9579823413 100644 --- a/corelib/src/Parameters.cpp +++ b/corelib/src/Parameters.cpp @@ -236,6 +236,9 @@ const std::map > & Parameters::getRemo { // removed parameters + // 0.21.7 + removedParameters_.insert(std::make_pair("SIFT/NFeatures", std::make_pair(false, ""))); + // 0.21.3 removedParameters_.insert(std::make_pair("GridGlobal/FullUpdate", std::make_pair(false, ""))); @@ -682,6 +685,12 @@ ParametersMap Parameters::parseArguments(int argc, char * argv[], bool onlyParam std::cout << str << std::setw(spacing - str.size()) << "true" << std::endl; #else std::cout << str << std::setw(spacing - str.size()) << "false" << std::endl; +#endif + str = "With CudaSift:"; +#ifdef RTABMAP_CUDASIFT + std::cout << str << std::setw(spacing - str.size()) << "true" << std::endl; +#else + std::cout << str << std::setw(spacing - str.size()) << "false" << std::endl; #endif str = "With TORO:"; #ifdef RTABMAP_TORO diff --git a/corelib/src/RegistrationVis.cpp b/corelib/src/RegistrationVis.cpp index 260b3d255e..67814aef42 100644 --- a/corelib/src/RegistrationVis.cpp +++ b/corelib/src/RegistrationVis.cpp @@ -49,6 +49,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include // For GMS matcher #endif +#ifdef HAVE_OPENCV_CUDAOPTFLOW +#include +#include +#endif + #include @@ -79,6 +84,7 @@ RegistrationVis::RegistrationVis(const ParametersMap & parameters, Registration _flowIterations(Parameters::defaultVisCorFlowIterations()), _flowEps(Parameters::defaultVisCorFlowEps()), _flowMaxLevel(Parameters::defaultVisCorFlowMaxLevel()), + _flowGpu(Parameters::defaultVisCorFlowGpu()), _nndr(Parameters::defaultVisCorNNDR()), _nnType(Parameters::defaultVisCorNNType()), _gmsWithRotation(Parameters::defaultGMSWithRotation()), @@ -139,6 +145,7 @@ void RegistrationVis::parseParameters(const ParametersMap & parameters) Parameters::parse(parameters, Parameters::kVisCorFlowIterations(), _flowIterations); Parameters::parse(parameters, Parameters::kVisCorFlowEps(), _flowEps); Parameters::parse(parameters, Parameters::kVisCorFlowMaxLevel(), _flowMaxLevel); + Parameters::parse(parameters, Parameters::kVisCorFlowGpu(), _flowGpu); Parameters::parse(parameters, Parameters::kVisCorNNDR(), _nndr); Parameters::parse(parameters, Parameters::kVisCorNNType(), _nnType); Parameters::parse(parameters, Parameters::kGMSWithRotation(), _gmsWithRotation); @@ -160,6 +167,14 @@ void RegistrationVis::parseParameters(const ParametersMap & parameters) UASSERT_MSG(_inlierDistance > 0.0f, uFormat("value=%f", _inlierDistance).c_str()); UASSERT_MSG(_iterations > 0, uFormat("value=%d", _iterations).c_str()); +#ifndef HAVE_OPENCV_CUDAOPTFLOW + if(_flowGpu) + { + UERROR("%s is enabled but RTAB-Map is not built with OpenCV CUDA, disabling it.", Parameters::kVisCorFlowGpu().c_str()); + _flowGpu = false; + } +#endif + if(_nnType == 6) { // verify that we have Python3 support @@ -467,18 +482,59 @@ Transform RegistrationVis::computeTransformationImpl( if(_correspondencesApproach == 1) //Optical Flow { UDEBUG(""); - // convert to grayscale - if(imageFrom.channels() > 1) +#ifdef HAVE_OPENCV_CUDAOPTFLOW + cv::cuda::GpuMat d_imageFrom; + cv::cuda::GpuMat d_imageTo; + if (_flowGpu) { - cv::Mat tmp; - cv::cvtColor(imageFrom, tmp, cv::COLOR_BGR2GRAY); - imageFrom = tmp; + UDEBUG("GPU optical flow: preparing GPU image data..."); + d_imageFrom = fromSignature.sensorData().imageRawGpu(); + if(d_imageFrom.empty() && !imageFrom.empty()) { + d_imageFrom = cv::cuda::GpuMat(imageFrom); + } + // convert to grayscale + if(d_imageFrom.channels() > 1) { + cv::cuda::GpuMat tmp; + cv::cuda::cvtColor(d_imageFrom, tmp, cv::COLOR_BGR2GRAY); + d_imageFrom = tmp; + } + if(fromSignature.sensorData().imageRawGpu().empty()) + { + fromSignature.sensorData().setImageRawGpu(d_imageFrom); // buffer it + } + + d_imageTo = toSignature.sensorData().imageRawGpu(); + if(d_imageTo.empty() && !imageTo.empty()) { + d_imageTo = cv::cuda::GpuMat(imageTo); + } + // convert to grayscale + if(d_imageTo.channels() > 1) { + cv::cuda::GpuMat tmp; + cv::cuda::cvtColor(d_imageTo, tmp, cv::COLOR_BGR2GRAY); + d_imageTo = tmp; + } + if(toSignature.sensorData().imageRawGpu().empty()) + { + toSignature.sensorData().setImageRawGpu(d_imageTo); // buffer it + } + UDEBUG("GPU optical flow: preparing GPU image data... done!"); } - if(imageTo.channels() > 1) + else +#endif { - cv::Mat tmp; - cv::cvtColor(imageTo, tmp, cv::COLOR_BGR2GRAY); - imageTo = tmp; + // convert to grayscale + if(imageFrom.channels() > 1) + { + cv::Mat tmp; + cv::cvtColor(imageFrom, tmp, cv::COLOR_BGR2GRAY); + imageFrom = tmp; + } + if(imageTo.channels() > 1) + { + cv::Mat tmp; + cv::cvtColor(imageTo, tmp, cv::COLOR_BGR2GRAY); + imageTo = tmp; + } } std::vector kptsFrom3D; @@ -568,9 +624,38 @@ Transform RegistrationVis::computeTransformationImpl( // Find features in the new left image UDEBUG("guessSet = %d", guessSet?1:0); std::vector status; - std::vector err; - UDEBUG("cv::calcOpticalFlowPyrLK() begin"); - cv::calcOpticalFlowPyrLK( +#ifdef HAVE_OPENCV_CUDAOPTFLOW + if (_flowGpu) + { + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow transfer host to device begin"); + cv::cuda::GpuMat d_cornersFrom(cornersFrom); + cv::cuda::GpuMat d_cornersTo(cornersTo); + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow transfer host to device end"); + cv::cuda::GpuMat d_status; + cv::Ptr d_pyrLK_sparse = cv::cuda::SparsePyrLKOpticalFlow::create( + cv::Size(_flowWinSize, _flowWinSize), guessSet ? 0 : _flowMaxLevel, _flowIterations, guessSet); + + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow calc begin"); + d_pyrLK_sparse->calc(d_imageFrom, d_imageTo, d_cornersFrom, d_cornersTo, d_status); + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow calc end"); + + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow transfer device to host begin"); + // Transfer back data to CPU + cornersTo = std::vector(d_cornersTo.cols); + cv::Mat matCornersTo(1, d_cornersTo.cols, CV_32FC2, (void*)&cornersTo[0]); + d_cornersTo.download(matCornersTo); + + status = std::vector(d_status.cols); + cv::Mat matStatus(1, d_status.cols, CV_8UC1, (void*)&status[0]); + d_status.download(matStatus); + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow transfer device to host end"); + } + else +#endif + { + std::vector err; + UDEBUG("cv::calcOpticalFlowPyrLK() begin"); + cv::calcOpticalFlowPyrLK( imageFrom, imageTo, cornersFrom, @@ -578,10 +663,11 @@ Transform RegistrationVis::computeTransformationImpl( status, err, cv::Size(_flowWinSize, _flowWinSize), - guessSet?0:_flowMaxLevel, - cv::TermCriteria(cv::TermCriteria::COUNT+cv::TermCriteria::EPS, _flowIterations, _flowEps), - cv::OPTFLOW_LK_GET_MIN_EIGENVALS | (guessSet?cv::OPTFLOW_USE_INITIAL_FLOW:0), 1e-4); - UDEBUG("cv::calcOpticalFlowPyrLK() end"); + guessSet ? 0 : _flowMaxLevel, + cv::TermCriteria(cv::TermCriteria::COUNT + cv::TermCriteria::EPS, _flowIterations, _flowEps), + cv::OPTFLOW_LK_GET_MIN_EIGENVALS | (guessSet ? cv::OPTFLOW_USE_INITIAL_FLOW : 0), 1e-4); + UDEBUG("cv::calcOpticalFlowPyrLK() end"); + } UASSERT(kptsFrom.size() == kptsFrom3D.size()); std::vector kptsTo(kptsFrom.size()); diff --git a/corelib/src/Stereo.cpp b/corelib/src/Stereo.cpp index 20bc8377ae..448cf8cbb6 100644 --- a/corelib/src/Stereo.cpp +++ b/corelib/src/Stereo.cpp @@ -30,6 +30,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include +#ifdef HAVE_OPENCV_CUDAOPTFLOW +#include +#endif + namespace rtabmap { Stereo * Stereo::create(const ParametersMap & parameters) @@ -92,9 +96,22 @@ std::vector Stereo::computeCorrespondences( return rightCorners; } +#ifdef HAVE_OPENCV_CUDEV +std::vector Stereo::computeCorrespondences( + const cv::cuda::GpuMat & leftImage, + const cv::cuda::GpuMat & rightImage, + const std::vector & leftCorners, + std::vector & status) const +{ + UERROR("GPU support for this approach is not implemented!"); + return std::vector(); +} +#endif + StereoOpticalFlow::StereoOpticalFlow(const ParametersMap & parameters) : Stereo(parameters), - epsilon_(Parameters::defaultStereoEps()) + epsilon_(Parameters::defaultStereoEps()), + gpu_(Parameters::defaultStereoGpu()) { this->parseParameters(parameters); } @@ -103,8 +120,24 @@ void StereoOpticalFlow::parseParameters(const ParametersMap & parameters) { Stereo::parseParameters(parameters); Parameters::parse(parameters, Parameters::kStereoEps(), epsilon_); + Parameters::parse(parameters, Parameters::kStereoGpu(), gpu_); +#ifndef HAVE_OPENCV_CUDAOPTFLOW + if(gpu_) + { + UERROR("%s is enabled but RTAB-Map is not built with OpenCV CUDA, disabling it.", Parameters::kStereoGpu().c_str()); + gpu_ = false; + } +#endif } +bool StereoOpticalFlow::isGpuEnabled() const +{ +#ifdef HAVE_OPENCV_CUDAOPTFLOW + return gpu_; +#else + return false; +#endif +} std::vector StereoOpticalFlow::computeCorrespondences( const cv::Mat & leftImage, @@ -113,20 +146,83 @@ std::vector StereoOpticalFlow::computeCorrespondences( std::vector & status) const { std::vector rightCorners; - UDEBUG("util2d::calcOpticalFlowPyrLKStereo() begin"); std::vector err; - util2d::calcOpticalFlowPyrLKStereo( - leftImage, - rightImage, - leftCorners, - rightCorners, - status, - err, - this->winSize(), - this->maxLevel(), - cv::TermCriteria(cv::TermCriteria::COUNT+cv::TermCriteria::EPS, this->iterations(), epsilon_), - cv::OPTFLOW_LK_GET_MIN_EIGENVALS, 1e-4); - UDEBUG("util2d::calcOpticalFlowPyrLKStereo() end"); +#ifdef HAVE_OPENCV_CUDAOPTFLOW + if(gpu_) + { + cv::cuda::GpuMat d_leftImage(leftImage); + cv::cuda::GpuMat d_rightImage(rightImage); + return computeCorrespondences(d_leftImage, d_rightImage, leftCorners, status); + } + else +#endif + { + UDEBUG("util2d::calcOpticalFlowPyrLKStereo() begin"); + util2d::calcOpticalFlowPyrLKStereo( + leftImage, + rightImage, + leftCorners, + rightCorners, + status, + err, + this->winSize(), + this->maxLevel(), + cv::TermCriteria(cv::TermCriteria::COUNT+cv::TermCriteria::EPS, this->iterations(), epsilon_), + cv::OPTFLOW_LK_GET_MIN_EIGENVALS, 1e-4); + UDEBUG("util2d::calcOpticalFlowPyrLKStereo() end"); + } + updateStatus(leftCorners, rightCorners, status); + return rightCorners; +} + +#ifdef HAVE_OPENCV_CUDEV +std::vector StereoOpticalFlow::computeCorrespondences( + const cv::cuda::GpuMat & leftImage, + const cv::cuda::GpuMat & rightImage, + const std::vector & leftCorners, + std::vector & status) const +{ + std::vector rightCorners; +#ifdef HAVE_OPENCV_CUDAOPTFLOW + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow transfer host to device begin"); + cv::cuda::GpuMat d_leftImage(leftImage); + cv::cuda::GpuMat d_rightImage(rightImage); + cv::cuda::GpuMat d_leftCorners(leftCorners); + cv::cuda::GpuMat d_rightCorners; + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow transfer host to device end"); + cv::cuda::GpuMat d_status; + cv::Ptr d_pyrLK_sparse = cv::cuda::SparsePyrLKOpticalFlow::create( + this->winSize(), this->maxLevel(), this->iterations()); + + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow calc begin"); + d_pyrLK_sparse->calc(d_leftImage, d_rightImage, d_leftCorners, d_rightCorners, d_status); + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow calc end"); + + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow transfer device to host begin"); + // Transfer back data to CPU + rightCorners = std::vector(d_rightCorners.cols); + cv::Mat matRightCorners(1, d_rightCorners.cols, CV_32FC2, (void*)&rightCorners[0]); + d_rightCorners.download(matRightCorners); + + status = std::vector(d_status.cols); + cv::Mat matStatus(1, d_status.cols, CV_8UC1, (void*)&status[0]); + d_status.download(matStatus); + UDEBUG("cv::cuda::SparsePyrLKOpticalFlow transfer device to host end"); + + updateStatus(leftCorners, rightCorners, status); + +#else + UERROR("GPU support for this approach is not implemented!"); +#endif + return rightCorners; +} +#endif + +void StereoOpticalFlow::updateStatus( + const std::vector & leftCorners, + const std::vector & rightCorners, + std::vector & status) const +{ UASSERT(leftCorners.size() == rightCorners.size() && status.size() == leftCorners.size()); int countFlowRejected = 0; int countDisparityRejected = 0; @@ -147,8 +243,6 @@ std::vector StereoOpticalFlow::computeCorrespondences( } } UDEBUG("total=%d countFlowRejected=%d countDisparityRejected=%d", (int)status.size(), countFlowRejected, countDisparityRejected); - - return rightCorners; } } /* namespace rtabmap */ diff --git a/corelib/src/camera/CameraStereoZed.cpp b/corelib/src/camera/CameraStereoZed.cpp index ed61e1511c..70d636b14f 100644 --- a/corelib/src/camera/CameraStereoZed.cpp +++ b/corelib/src/camera/CameraStereoZed.cpp @@ -286,15 +286,29 @@ CameraStereoZed::CameraStereoZed( UDEBUG(""); #ifdef RTABMAP_ZED #if ZED_SDK_MAJOR_VERSION < 4 - if(resolution_ == 3) + if(resolution_ == 1 || resolution_ == 2) // HD2K, HD1080 { - resolution_ = 2; + resolution_ -= 1; // HD2K=0, HD1080=1 } - else if(resolution_ == 5) + if(resolution_ == 3) // HD1200 { - resolution_ = 3; + resolution_ = 1; // HD1080=1 + } + if(resolution_ == 4 || resolution_ == -1) + { + resolution_ = 2; // HD720=2 + } + else if(resolution_ == 5 || resolution_ == 6) // SVGA, VGA + { + resolution_ = 3; // VGA=3 + } +#else // ZED=4 + if(resolution_ == -1) + { + resolution_ = int(sl::RESOLUTION::AUTO); // AUTO } #endif + #if ZED_SDK_MAJOR_VERSION < 3 UASSERT(resolution_ >= sl::RESOLUTION_HD2K && resolution_ = sl::DEPTH_MODE_NONE && quality_ update(); + cloudViewer_->refreshView(); lastOdometryProcessed_ = true; } @@ -277,6 +278,7 @@ protected Q_SLOTS: odometryCorrection_ = stats.mapCorrection(); cloudViewer_->update(); + cloudViewer_->refreshView(); processingStatistics_ = false; } diff --git a/examples/RGBDMapping/main.cpp b/examples/RGBDMapping/main.cpp index 28064e3bea..dae89861b6 100644 --- a/examples/RGBDMapping/main.cpp +++ b/examples/RGBDMapping/main.cpp @@ -137,7 +137,7 @@ int main(int argc, char * argv[]) UERROR("Not built with ZED SDK support..."); exit(-1); } - camera = new CameraStereoZed(0, 2, 1, 1, 100, false); + camera = new CameraStereoZed(0, -1, 1, 1, 100, false); } else if (driver == 7) { diff --git a/examples/WifiMapping/MapBuilder.h b/examples/WifiMapping/MapBuilder.h index 101e6035fa..a4b23ab6a2 100644 --- a/examples/WifiMapping/MapBuilder.h +++ b/examples/WifiMapping/MapBuilder.h @@ -156,6 +156,7 @@ protected Q_SLOTS: } } cloudViewer_->update(); + cloudViewer_->refreshView(); lastOdometryProcessed_ = true; } @@ -245,6 +246,7 @@ protected Q_SLOTS: odometryCorrection_ = stats.mapCorrection(); cloudViewer_->update(); + cloudViewer_->refreshView(); processingStatistics_ = false; } diff --git a/examples/WifiMapping/main.cpp b/examples/WifiMapping/main.cpp index 82a6ebf0a3..446da968c2 100644 --- a/examples/WifiMapping/main.cpp +++ b/examples/WifiMapping/main.cpp @@ -172,7 +172,7 @@ int main(int argc, char * argv[]) UERROR("Not built with ZED SDK support..."); exit(-1); } - camera = new CameraStereoZed(0, 2, 1, 1, 100, false, 0, opticalRotation); + camera = new CameraStereoZed(0, -1, 1, 1, 100, false, 0, opticalRotation); } else if (driver == 7) { diff --git a/guilib/src/AboutDialog.cpp b/guilib/src/AboutDialog.cpp index a5713caa17..43b6155b5b 100644 --- a/guilib/src/AboutDialog.cpp +++ b/guilib/src/AboutDialog.cpp @@ -100,6 +100,20 @@ AboutDialog::AboutDialog(QWidget * parent) : _ui->label_fastcv->setText("No"); _ui->label_fastcv_license->setEnabled(false); #endif +#ifdef RTABMAP_PDAL + _ui->label_pdal->setText("Yes"); + _ui->label_pdal_license->setEnabled(true); +#else + _ui->label_pdal->setText("No"); + _ui->label_pdal_license->setEnabled(false); +#endif +#ifdef RTABMAP_CUDASIFT + _ui->label_cudasift->setText("Yes"); + _ui->label_cudasift_license->setEnabled(true); +#else + _ui->label_cudasift->setText("No"); + _ui->label_cudasift_license->setEnabled(false); +#endif #ifdef RTABMAP_OCTOMAP _ui->label_octomap->setText("Yes"); _ui->label_octomap_license->setEnabled(true); diff --git a/guilib/src/OdometryViewer.cpp b/guilib/src/OdometryViewer.cpp index 27c6125565..1be68f33fb 100644 --- a/guilib/src/OdometryViewer.cpp +++ b/guilib/src/OdometryViewer.cpp @@ -211,7 +211,7 @@ void OdometryViewer::processData(const rtabmap::OdometryEvent & odom) cloudView_->setBackgroundColor(Qt::black); } - timeLabel_->setText(QString("%1 s").arg(odom.info().timeEstimation)); + timeLabel_->setText(QString("%1 s").arg(odom.info().timeEstimation)); if(cloudShown_->isChecked() && !odom.data().imageRaw().empty() && @@ -219,8 +219,8 @@ void OdometryViewer::processData(const rtabmap::OdometryEvent & odom) (odom.data().stereoCameraModels().size() || odom.data().cameraModels().size())) { UDEBUG("New pose = %s, quality=%d", odom.pose().prettyPrint().c_str(), quality); - - if(!odom.data().depthRaw().empty()) + + if(!odom.data().depthRaw().empty()) { if(odom.data().imageRaw().cols % decimationSpin_->value() == 0 && odom.data().imageRaw().rows % decimationSpin_->value() == 0) @@ -238,14 +238,14 @@ void OdometryViewer::processData(const rtabmap::OdometryEvent & odom) } } else - { - validDecimationValue_ = decimationSpin_->value(); + { + validDecimationValue_ = decimationSpin_->value(); } // visualization: buffering the clouds // Create the new cloud pcl::PointCloud::Ptr cloud; - pcl::IndicesPtr validIndices(new std::vector); + pcl::IndicesPtr validIndices(new std::vector); cloud = util3d::cloudRGBFromSensorData( odom.data(), validDecimationValue_, @@ -257,7 +257,7 @@ void OdometryViewer::processData(const rtabmap::OdometryEvent & odom) if(voxelSpin_->value()) { cloud = util3d::voxelize(cloud, validIndices, voxelSpin_->value()); - } + } if(cloud->size()) { @@ -489,6 +489,7 @@ void OdometryViewer::processData(const rtabmap::OdometryEvent & odom) imageView_->update(); cloudView_->update(); + cloudView_->refreshView(); QApplication::processEvents(); processingData_ = false; } diff --git a/guilib/src/PreferencesDialog.cpp b/guilib/src/PreferencesDialog.cpp index 19a51382bf..fa2e06b06b 100644 --- a/guilib/src/PreferencesDialog.cpp +++ b/guilib/src/PreferencesDialog.cpp @@ -159,10 +159,28 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) : _ui->checkBox_ORBGpu->setEnabled(false); _ui->label_orbGpu->setEnabled(false); + _ui->checkBox_GFTT_gpu->setEnabled(false); + _ui->label_GFTT_gpu->setEnabled(false); + // disable BruteForceGPU option _ui->comboBox_dictionary_strategy->setItemData(4, 0, Qt::UserRole - 1); _ui->reextract_nn->setItemData(4, 0, Qt::UserRole - 1); } +#ifndef RTABMAP_CUDASIFT + _ui->sift_checkBox_gpu->setEnabled(false); + _ui->sift_label_gpu->setEnabled(false); + _ui->sift_doubleSpinBox_gaussianDiffThreshold->setEnabled(false); + _ui->sift_label_gaussianThreshold->setEnabled(false); + _ui->sift_checkBox_upscale->setEnabled(false); + _ui->sift_label_upscale->setEnabled(false); +#endif + +#ifndef HAVE_OPENCV_CUDAOPTFLOW + _ui->odom_flow_gpu->setEnabled(false); + _ui->label_odom_flow_gpu->setEnabled(false); + _ui->stereo_flow_gpu->setEnabled(false); + _ui->label_stereo_flow_gpu->setEnabled(false); +#endif #ifndef RTABMAP_OCTOMAP _ui->groupBox_octomap->setChecked(false); @@ -242,6 +260,10 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) : _ui->vis_feature_detector->setItemData(1, 0, Qt::UserRole - 1); #endif #endif +#if CV_MAJOR_VERSION < 4 || (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION < 8) + _ui->sift_checkBox_preciseUpscale->setEnabled(false); + _ui->sift_label_preciseUpscale->setEnabled(false); +#endif #if CV_MAJOR_VERSION >= 3 && !defined(HAVE_OPENCV_XFEATURES2D) _ui->comboBox_detector_strategy->setItemData(3, 0, Qt::UserRole - 1); @@ -401,7 +423,7 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) : } else if(CameraStereoZed::sdkVersion() < 4) { - _ui->comboBox_stereoZed_resolution->setItemData(2, 0, Qt::UserRole - 1); + _ui->comboBox_stereoZed_resolution->setItemData(1, 0, Qt::UserRole - 1); _ui->comboBox_stereoZed_resolution->setItemData(4, 0, Qt::UserRole - 1); _ui->comboBox_stereoZed_resolution->setItemData(6, 0, Qt::UserRole - 1); _ui->comboBox_stereoZed_quality->setItemData(3, 0, Qt::UserRole - 1); @@ -1063,12 +1085,15 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) : _ui->surf_doubleSpinBox_gpuKeypointsRatio->setObjectName(Parameters::kSURFGpuKeypointsRatio().c_str()); //SIFT detector - _ui->sift_spinBox_nFeatures->setObjectName(Parameters::kSIFTNFeatures().c_str()); _ui->sift_spinBox_nOctaveLayers->setObjectName(Parameters::kSIFTNOctaveLayers().c_str()); _ui->sift_doubleSpinBox_contrastThr->setObjectName(Parameters::kSIFTContrastThreshold().c_str()); _ui->sift_doubleSpinBox_edgeThr->setObjectName(Parameters::kSIFTEdgeThreshold().c_str()); _ui->sift_doubleSpinBox_sigma->setObjectName(Parameters::kSIFTSigma().c_str()); + _ui->sift_checkBox_preciseUpscale->setObjectName(Parameters::kSIFTPreciseUpscale().c_str()); _ui->sift_checkBox_rootsift->setObjectName(Parameters::kSIFTRootSIFT().c_str()); + _ui->sift_checkBox_gpu->setObjectName(Parameters::kSIFTGpu().c_str()); + _ui->sift_doubleSpinBox_gaussianDiffThreshold->setObjectName(Parameters::kSIFTGaussianThreshold().c_str()); + _ui->sift_checkBox_upscale->setObjectName(Parameters::kSIFTUpscale().c_str()); //BRIEF descriptor _ui->briefBytes->setObjectName(Parameters::kBRIEFBytes().c_str()); @@ -1106,6 +1131,7 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) : _ui->spinBox_GFTT_blockSize->setObjectName(Parameters::kGFTTBlockSize().c_str()); _ui->checkBox_GFTT_useHarrisDetector->setObjectName(Parameters::kGFTTUseHarrisDetector().c_str()); _ui->doubleSpinBox_GFTT_k->setObjectName(Parameters::kGFTTK().c_str()); + _ui->checkBox_GFTT_gpu->setObjectName(Parameters::kGFTTGpu().c_str()); //BRISK _ui->spinBox_BRISK_thresh->setObjectName(Parameters::kBRISKThresh().c_str()); @@ -1265,10 +1291,11 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) : _ui->subpix_winSize->setObjectName(Parameters::kVisSubPixWinSize().c_str()); _ui->subpix_iterations->setObjectName(Parameters::kVisSubPixIterations().c_str()); _ui->subpix_eps->setObjectName(Parameters::kVisSubPixEps().c_str()); - _ui->odom_flow_winSize_2->setObjectName(Parameters::kVisCorFlowWinSize().c_str()); - _ui->odom_flow_maxLevel_2->setObjectName(Parameters::kVisCorFlowMaxLevel().c_str()); - _ui->odom_flow_iterations_2->setObjectName(Parameters::kVisCorFlowIterations().c_str()); - _ui->odom_flow_eps_2->setObjectName(Parameters::kVisCorFlowEps().c_str()); + _ui->odom_flow_winSize->setObjectName(Parameters::kVisCorFlowWinSize().c_str()); + _ui->odom_flow_maxLevel->setObjectName(Parameters::kVisCorFlowMaxLevel().c_str()); + _ui->odom_flow_iterations->setObjectName(Parameters::kVisCorFlowIterations().c_str()); + _ui->odom_flow_eps->setObjectName(Parameters::kVisCorFlowEps().c_str()); + _ui->odom_flow_gpu->setObjectName(Parameters::kVisCorFlowGpu().c_str()); _ui->loopClosure_bundle->setObjectName(Parameters::kVisBundleAdjustment().c_str()); //RegistrationIcp @@ -1585,6 +1612,8 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) : _ui->stereo_ssd->setObjectName(Parameters::kStereoSSD().c_str()); _ui->stereo_flow_eps->setObjectName(Parameters::kStereoEps().c_str()); _ui->stereo_opticalFlow->setObjectName(Parameters::kStereoOpticalFlow().c_str()); + _ui->stereo_flow_gpu->setObjectName(Parameters::kStereoGpu().c_str()); + // Odometry Open3D _ui->odom_open3d_method->setObjectName(Parameters::kOdomOpen3DMethod().c_str()); @@ -2200,7 +2229,7 @@ void PreferencesDialog::resetSettings(QGroupBox * groupBox) _ui->spinBox_stereo_right_device->setValue(-1); _ui->spinBox_stereousbcam_streamWidth->setValue(0); _ui->spinBox_stereousbcam_streamHeight->setValue(0); - _ui->comboBox_stereoZed_resolution->setCurrentIndex(CameraStereoZed::sdkVersion()<4?3:6); + _ui->comboBox_stereoZed_resolution->setCurrentIndex(0); _ui->comboBox_stereoZed_quality->setCurrentIndex(1); _ui->checkbox_stereoZed_selfCalibration->setChecked(true); _ui->comboBox_stereoZed_sensingMode->setCurrentIndex(0); @@ -6764,7 +6793,7 @@ Camera * PreferencesDialog::createCamera( { camera = new CameraStereoZed( device.isEmpty()?0:atoi(device.toStdString().c_str()), - _ui->comboBox_stereoZed_resolution->currentIndex(), + _ui->comboBox_stereoZed_resolution->currentIndex()-1, // depth should be enabled for zed vo to work _ui->comboBox_stereoZed_quality->currentIndex()==0&&odomOnly?1:_ui->comboBox_stereoZed_quality->currentIndex(), _ui->comboBox_stereoZed_sensingMode->currentIndex(), diff --git a/guilib/src/ui/aboutDialog.ui b/guilib/src/ui/aboutDialog.ui index 05d1036dfa..1fe54f3104 100644 --- a/guilib/src/ui/aboutDialog.ui +++ b/guilib/src/ui/aboutDialog.ui @@ -164,7 +164,7 @@ p, li { white-space: pre-wrap; } 0 0 596 - 1096 + 1142 @@ -185,81 +185,91 @@ p, li { white-space: pre-wrap; } - - + + - With K4A : + OpenCV version : true - - + + - BSD + With ORB Octree : true - - + + - <html><head/><body><p><span style=" font-weight:600;">Third Party Libraries</span></p></body></html> + Apache v2 - - Qt::RichText + + true + + + + + + + With K4W2 : true - - + + - With Viso2 : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - With CPU-TSDF : + GPLv3 true - - + + - BSD + PSF true - - + + - Apache-2 + With TORO : true - - + + @@ -271,21 +281,28 @@ p, li { white-space: pre-wrap; } - - + + - + GPLv3 - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + true + + + + + + + Apache v2 and/or GPLv2 true - - + + @@ -297,18 +314,18 @@ p, li { white-space: pre-wrap; } - - + + - GPLv3 + Apache-2 true - - + + @@ -320,41 +337,41 @@ p, li { white-space: pre-wrap; } - - + + - With stereo dc1394 : + LGPL true - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + With g2o : true - - + + - With Zed Open Capture : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + @@ -366,8 +383,18 @@ p, li { white-space: pre-wrap; } - - + + + + Apache v2 + + + true + + + + + @@ -379,18 +406,18 @@ p, li { white-space: pre-wrap; } - - + + - With OpenVINS : + With OpenNI2 : true - - + + GPLv3 @@ -399,18 +426,18 @@ p, li { white-space: pre-wrap; } - - + + - With Open3D : + With stereo FlyCapture2 : true - - + + @@ -422,81 +449,87 @@ p, li { white-space: pre-wrap; } - - + + - BSD + With Zed Open Capture : true - - + + - + <html><head/><body><p><span style=" font-weight:600;">Third Party Libraries</span></p></body></html> - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + Qt::RichText true - - + + - With RealSense2 : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - BSD + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - With g2o : + Apache v2 true - - + + - With OpenNI2 : + Creative Commons [Attribution-NonCommercial-ShareAlike] true - - + + - BSD + GPLv3 true - - + + @@ -508,28 +541,28 @@ p, li { white-space: pre-wrap; } - - + + - BSD + With FastCV : true - - + + - With AliceVision : + BSD true - - + + @@ -541,21 +574,48 @@ p, li { white-space: pre-wrap; } - - + + - + With Zed SDK : - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + true + + + + + + + BSD true - - + + + + With loam_velodyne : + + + true + + + + + + + With Python3 : + + + true + + + + + @@ -567,78 +627,84 @@ p, li { white-space: pre-wrap; } - - + + - Open Source or Commercial + With CCCoreLib : true - - + + - MPL2 + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - With MRPT : + With Ceres : true - - + + - With MYNTEYE S : + With RealSense : true - - + + - With DVO : + Apache-2 true - - + + - With OpenChisel : + BSD true - - + + - With VINS-Fusion : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + @@ -650,84 +716,81 @@ p, li { white-space: pre-wrap; } - - + + - GPLv3 + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - GPLv3 + With GridMap : true - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + BSD true - - + + - With cvsba : + BSD true - - + + - GPLv2 + BSD true - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + With Octomap : true - - + + - With Freenect : + Penn Software License true - - + + @@ -739,48 +802,54 @@ p, li { white-space: pre-wrap; } - - + + - With FastCV : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - Apache v2 and/or GPLv2 + With AliceVision : true - - + + - With stereo FlyCapture2 : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - MIT + MPL2 true - - + + @@ -792,51 +861,48 @@ p, li { white-space: pre-wrap; } - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + With OpenChisel : true - - + + - Creative Commons [Attribution-NonCommercial-ShareAlike] + With cvsba : true - - + + - With ORB Octree : + GPLv2 true - - + + - OpenCV version : + With Open3D : true - - + + @@ -848,41 +914,38 @@ p, li { white-space: pre-wrap; } - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + GPLv3 true - - + + - With DepthAI : + MIT true - - + + - GPLv2 + With CPU-TSDF : true - - + + @@ -894,21 +957,18 @@ p, li { white-space: pre-wrap; } - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + With OpenNI : true - - + + @@ -920,8 +980,8 @@ p, li { white-space: pre-wrap; } - - + + @@ -933,18 +993,28 @@ p, li { white-space: pre-wrap; } - - + + - BSD + GPLv2 true - - + + + + With Freenect2 : + + + true + + + + + @@ -956,86 +1026,87 @@ p, li { white-space: pre-wrap; } - - + + - Apache v2 + Qt version : true - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + With RealSense2 : true - - + + - <html><head/><body><p><span style=" font-weight:600;">License</span></p></body></html> + Apache v2 and/or GPLv2 true - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + BSD true - - + + - With K4W2 : + With K4A : true - - + + - + BSD - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + true + + + + + + + GPLv3 true - - + + - MIT + GPLv3 true - + With libpointmatcher : @@ -1045,7 +1116,7 @@ p, li { white-space: pre-wrap; } - + With ORB SLAM 2 : @@ -1055,8 +1126,8 @@ p, li { white-space: pre-wrap; } - - + + BSD @@ -1065,8 +1136,8 @@ p, li { white-space: pre-wrap; } - - + + @@ -1078,8 +1149,8 @@ p, li { white-space: pre-wrap; } - - + + @@ -1092,7 +1163,7 @@ p, li { white-space: pre-wrap; } - + @@ -1104,31 +1175,38 @@ p, li { white-space: pre-wrap; } - - + + - + With OKVIS : - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + true + + + + + + + MIT true - - + + - Penn Software License + With DVO : true - - + + @@ -1140,84 +1218,81 @@ p, li { white-space: pre-wrap; } - - + + - GPLv2 + Open Source or Commercial true - - + + - With FOVIS : + With MYNTEYE S : true - - + + - MIT + VTK version : true - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + GPLv2 true - - + + - With loam_velodyne : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - BSD + With DepthAI : true - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + With OpenVINS : true - - + + @@ -1229,38 +1304,44 @@ p, li { white-space: pre-wrap; } - - + + - GPLv3 + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - PCL version : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - Apache v2 + With FOVIS : true - - + + @@ -1272,131 +1353,134 @@ p, li { white-space: pre-wrap; } - - + + - With Freenect2 : + BSD true - - + + - With Python3 : + PCL version : true - - + + - Apache-2 + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - BSD + With Viso2 : true - - + + - GPLv3 + <html><head/><body><p><span style=" font-weight:600;">License</span></p></body></html> true - - + + - BSD + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - With RealSense : + BSD true - - + + - Qt version : + BSD true - - + + - Apache v2 and/or GPLv2 + MIT true - - + + - With Ceres : + MIT true - - + + - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + With GTSAM : true - - + + - MIT + With Freenect : true - - + + @@ -1408,8 +1492,8 @@ p, li { white-space: pre-wrap; } - - + + @@ -1421,60 +1505,66 @@ p, li { white-space: pre-wrap; } - - + + - With OKVIS : + With MRPT : true - - + + - With Octomap : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - BSD + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - GPLv3 + With XVisio SDK : true - - + + - PSF + BSD true - - + + - With GridMap : + With CudaSift : true @@ -1482,19 +1572,22 @@ p, li { white-space: pre-wrap; } - + - With Zed SDK : + With stereo dc1394 : true - - + + - With TORO : + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true @@ -1502,7 +1595,7 @@ p, li { white-space: pre-wrap; } - + @@ -1514,18 +1607,8 @@ p, li { white-space: pre-wrap; } - - - - With CCCoreLib : - - - true - - - - - + + @@ -1537,58 +1620,61 @@ p, li { white-space: pre-wrap; } - - + + - VTK version : + With VINS-Fusion : true - - + + - BSD + MIT true - - + + - With XVisio SDK : + With MSCKF : true - - + + - LGPL + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true - - + + - With MSCKF : + With SuperPoint Torch : true - - + + @@ -1600,18 +1686,8 @@ p, li { white-space: pre-wrap; } - - - - With GTSAM : - - - true - - - - - + + @@ -1623,28 +1699,28 @@ p, li { white-space: pre-wrap; } - - + + - With SuperPoint Torch : + BSD true - - + + - With OpenNI : + With PDAL : true - - + + @@ -1656,16 +1732,6 @@ p, li { white-space: pre-wrap; } - - - - Apache v2 - - - true - - - diff --git a/guilib/src/ui/preferencesDialog.ui b/guilib/src/ui/preferencesDialog.ui index be76a324f7..f0980e11fd 100644 --- a/guilib/src/ui/preferencesDialog.ui +++ b/guilib/src/ui/preferencesDialog.ui @@ -95,7 +95,7 @@ QFrame::Raised - 7 + 24 @@ -5534,6 +5534,16 @@ when using the file type, logs are saved in LogRtabmap.txt (located in the worki + + + AUTO + + + + + HD4K + + HD2K @@ -5564,11 +5574,6 @@ when using the file type, logs are saved in LogRtabmap.txt (located in the worki VGA - - - AUTO - - @@ -15707,7 +15712,7 @@ If set to false, classic RTAB-Map loop closure detection is done using only imag - 5 + 1 @@ -16107,27 +16112,11 @@ If set to false, classic RTAB-Map loop closure detection is done using only imag [Visual] Correspondences computation: Optical Flow - - - - - 1 - - - 999999 - - - 1 - - - 21 - - - - - + + + - Iterations. + Window size. true @@ -16150,34 +16139,40 @@ If set to false, classic RTAB-Map loop closure detection is done using only imag - - - - Window size. + + + + 1 - - true + + 999999 - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + 1 + + + 30 - - - - Epsilon. + + + + 1 - - true + + 999999 - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + 1 + + + 21 - + 3 @@ -16195,8 +16190,21 @@ If set to false, classic RTAB-Map loop closure detection is done using only imag + + + + Iterations. + + + true + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + + - + 0 @@ -16211,19 +16219,36 @@ If set to false, classic RTAB-Map loop closure detection is done using only imag - - - - 1 + + + + Epsilon. - - 999999 + + true - - 1 + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - 30 + + + + + + Use GPU. OpenCV built with CUDA required. + + + true + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + + + + + + @@ -24313,23 +24338,10 @@ Lower the ratio -> higher the precision. - - - - Window height. - - - true - - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - - - - + + - Minimum disparity. + Maximum disparity. true @@ -24339,10 +24351,10 @@ Lower the ratio -> higher the precision. - - + + - 3 + 1 999999 @@ -24351,14 +24363,14 @@ Lower the ratio -> higher the precision. 1 - 21 + 30 - - + + - Window width. + Use optical flow to find stereo correspondences, otherwise a simple block matching approach is used. true @@ -24368,10 +24380,10 @@ Lower the ratio -> higher the precision. - - + + - Maximum iterations. + Maximum pyramid level. true @@ -24381,68 +24393,30 @@ Lower the ratio -> higher the precision. - - + + - - - - - - - - 3 - - - 999999 - - - 1 - - - 21 - - - - - - - 1 - - - 999999 + [OpticalFlow = true] Epsilon stop criterion. - - 1 + + true - - 30 + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - - - 4 - - - 0.000100000000000 - + + - 0.100000000000000 - - - 0.010000000000000 - - - 0.010000000000000 + 9999.000000000000000 - - + + - [OpticalFlow = true] Epsilon stop criterion. + Maximum iterations. true @@ -24452,10 +24426,10 @@ Lower the ratio -> higher the precision. - - + + - Maximum pyramid level. + Window width. true @@ -24465,22 +24439,6 @@ Lower the ratio -> higher the precision. - - - - 0 - - - 999999 - - - 1 - - - 3 - - - @@ -24494,10 +24452,10 @@ Lower the ratio -> higher the precision. - - + + - Use optical flow to find stereo correspondences, otherwise a simple block matching approach is used. + Minimum disparity. true @@ -24507,16 +24465,36 @@ Lower the ratio -> higher the precision. - - - - Maximum disparity. - - - true + + + + 9999.000000000000000 - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + + + + + 4 + + + 0.000100000000000 + + + 0.100000000000000 + + + 0.010000000000000 + + + 0.010000000000000 + + + + + + + @@ -24527,17 +24505,84 @@ Lower the ratio -> higher the precision. - - + + + + 3 + - 9999.000000000000000 + 999999 + + + 1 + + + 21 - - + + + + 0 + - 9999.000000000000000 + 999999 + + + 1 + + + 3 + + + + + + + Window height. + + + true + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + + + + + + 3 + + + 999999 + + + 1 + + + 21 + + + + + + + [OpticalFlow = true] Do optical flow on GPU. RTAB-Map should be built with OpenCV CUDA. + + + true + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + + + + + + @@ -25515,13 +25560,46 @@ Lower the ratio -> higher the precision. SIFT + + + + + + + + + + + Edge threshold. The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). + + + true + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + + - + - + + + Whether to enable precise upscaling in the scale pyramid. + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + + + + - Sigma. + The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. Not used by CudaSift, the number of octaves is still computed automatically. + + + true Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse @@ -25529,6 +25607,23 @@ Lower the ratio -> higher the precision. + + + 0.100000000000000 + + + 10.000000000000000 + + + + + + + + + + + 6 @@ -25547,81 +25642,116 @@ Lower the ratio -> higher the precision. - - + + + + 0.100000000000000 + + + 10.000000000000000 + + + + + - Contrast threshold. + CudaSift: Use GPU version of SIFT. This option is enabled only RTAB-Map is built with CudaSift dependency and GPUs are detected. + + + true Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - + + - Edge threshold. + Contrast threshold. The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. Not used by CudaSift. + + + true Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - + + + + 2 + + + 0.010000000000000 + + + 100.000000000000000 + 0.100000000000000 - 10.000000000000000 + 4.500000000000000 - - - - 0.100000000000000 + + + + RootSIFT. - - 10.000000000000000 + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - - - - + + - nOctaveLayers. + CudaSift: Threshold on difference of Gaussians for feature pruning. The higher the threshold, the less features are produced by the detector. + + + true Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - + + + + + + + + + - nFeatures. + Sigma. The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. + + + true Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - + + - RootSIFT. + CudaSift: Whether to enable upscaling. Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - + + @@ -26272,22 +26402,16 @@ Lower the ratio -> higher the precision. GFTT - - - - 4 - - - 0.000100000000000 - - - 1.000000000000000 + + + + Quality level. Parameter characterizing the minimal accepted quality of image corners. The parameter value is multiplied by the best corner quality measure, which is the minimal eigenvalue (see cornerMinEigenVal() ) or the Harris function response. The corners with the quality measure less than the product are rejected. For example, if the best corner has the quality measure = 1500, and the qualityLevel=0.01 , then all the corners with the quality measure less than 15 are rejected. - - 0.010000000000000 + + true - - 0.010000000000000 + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse @@ -26311,21 +26435,14 @@ Lower the ratio -> higher the precision. - - - - Use Harris detector. - - - true + + + + 4 - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + 0.000100000000000 - - - - 1.000000000000000 @@ -26333,7 +26450,7 @@ Lower the ratio -> higher the precision. 0.010000000000000 - 0.040000000000000 + 0.010000000000000 @@ -26357,10 +26474,23 @@ Lower the ratio -> higher the precision. - - + + + + 1.000000000000000 + + + 0.010000000000000 + + + 0.040000000000000 + + + + + - Quality level. Parameter characterizing the minimal accepted quality of image corners. The parameter value is multiplied by the best corner quality measure, which is the minimal eigenvalue (see cornerMinEigenVal() ) or the Harris function response. The corners with the quality measure less than the product are rejected. For example, if the best corner has the quality measure = 1500, and the qualityLevel=0.01 , then all the corners with the quality measure less than 15 are rejected. + Block size. Size of an average block for computing a derivative covariation matrix over each pixel neighborhood. true @@ -26383,10 +26513,10 @@ Lower the ratio -> higher the precision. - - + + - Block size. Size of an average block for computing a derivative covariation matrix over each pixel neighborhood. + Use Harris detector. true @@ -26396,6 +26526,29 @@ Lower the ratio -> higher the precision. + + + + GPU-GFTT: Use GPU version of GFTT. This option is available only if OpenCV>=3 is built with CUDA and GPUs are detected. + + + true + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + + + + + + + + + true + + + diff --git a/tools/OdometryViewer/main.cpp b/tools/OdometryViewer/main.cpp index 565cc1ce15..67c65a0d51 100644 --- a/tools/OdometryViewer/main.cpp +++ b/tools/OdometryViewer/main.cpp @@ -330,7 +330,7 @@ int main (int argc, char * argv[]) UERROR("Not built with ZED sdk support..."); exit(-1); } - camera = new rtabmap::CameraStereoZed(0,3,1,0,100,false,rate); + camera = new rtabmap::CameraStereoZed(0,-1,1,0,100,false,rate); } else if (driver == 9) {