arrenglover / openfabmap

Open-source C++ code for the FAB-MAP visual place recognition algorithm
Other
218 stars 68 forks source link

Allow for building sample with OpenCV v4 #24

Closed alexdewar closed 3 years ago

alexdewar commented 3 years ago

Only a few tweaks to the source code were needed to build it with OpenCV 4. Most of the changes involve replacing some C-style macros with their newer enum class counterparts.

This should still build with OpenCV v3 -- it's just that with v4 a few deprecated definitions were removed.

arrenglover commented 3 years ago

@alexdewar thanks very much! compiles on opencv2, 3 and 4 for me. nice work.