MAP-Tk 0.9.0 Release Provides Dense 3D, Better Loop Closure, and OpenCV 3 Support
KWIVER toolkit, which tackles challenging image and video analysis problems. For an introduction to MAP-Tk, please read “Getting Started with MAP-Tk for Aerial Photogrammetry.”
(MAP-Tk) 0.9.0 is a minor release that adds new features and fixes bugs. The most significant changes are support for loading and visualizing dense 3D depth maps, a new keyframe-based loop closure algorithm, and support for OpenCV 3. MAP-TK is an open-source collection of libraries and tools for making measurements from aerial video. It is part of theSignificant Changes
The MAP-Tk GUI application now supports loading dense depth maps and rendering them both in 2D and 3D. The depth images are loaded from VTK image files (.vti) and rendered as colored 3D point clouds or as a triangulated mesh. They are also rendered as color mapped images in a new 2D Depth Map View. There are options to filter the points in both views using thresholds on point attributes. MAP-Tk does not yet directly support estimation of these dense depth maps, but you can find a fork of PlaneSweepLib by Bastien Jacquet that uses camera calibration from MAP-Tk as input and writes the output into the required VTI format. PlaneSweepLib is the CUDA accelerated depth map estimation library developed by ETH Zurich. For future releases we are working on integrating depth map estimation more tightly with MAP-Tk by providing and abstract API for depth estimation that can be implemented by either PlaneSweepLib, Kitware’s Super3D, or other algorithms.
The new keyframe-based loop closure algorithm produces significantly better loop closures than the ground plane mapping approach that was previously the default algorithm. The new algorithm matches each image to the past N (e.g. 5) frames as well as the set of established key frames. A new key frame is established when the current frame does not match any of the existing key frames. The number of keyframes is dynamic and grows as a function of scene content change. Unlike the ground plane (i.e. homography) approach, the key frame approach does not rely on roughly planar scenes. A related new feature in 0.9.0 is support for fundamental matrix based filtering of feature matches instead of homography based filtering. Combining fundamental matrix based filtering and key frame loop closure makes MAP-Tk much more effective at non-video and non-aerial applications where the scene is highly non-planar and the baseline between images is large.
The OpenCV plugin for MAP-Tk now supports building against OpenCV versions equal or greater than 3.0. We’ve also retained support for building against OpenCV 2.4. OpenCV 3.X provides many new algorithms that we will begin to make use of in future MAP-Tk releases. Unfortunately it also removes a key feature that MAP-Tk had been relying on: the ability to introspect and instantiate algorithms dynamically. Previously, if OpenCV were to release a new algorithm — a new type of feature detector, for example — MAP-Tk would be able to automatically use it with just a configuration file change and no code changes. Since dynamic algorithm construction is no longer supported in OpenCV 3, we have overhauled the MAP-Tk OpenCV plugin to manually wrap each of the algorithms. The configuration of OpenCV algorithms in MAP-Tk is now a bit cleaner as a result of the manual wrapping of each algorithm, but there is more code to maintain as we track changes in OpenCV going forward. Some algorithm modifiers (e.g. GridAdaptedFeatureDetector) were dropped in OpenCV 3 and are no longer available to MAP-Tk, but otherwise the capabilities provided to MAP-Tk are unchanged.
There were many other minor features and bug fixes added in MAP-Tk 0.9.0. For additional details please read the release notes. As usual, installer packages are available for Windows, Linux, and Mac.
Looking Ahead
In the previous MAP-Tk release (0.8.0) we refactored MAP-Tk into two repositories: a new repository called Vital and the existing MAP-Tk repository. This organization remains the same for the 0.9.0 release. However, another big refactoring is scheduled for the next MAP-Tk release. The Kitware Image and Video Exploitation and Retrieval (KWIVER) toolkit was originally a name for a loose collection of tools that included MAP-Tk. KWIVER has now been refactored to be an actual code repository. Among other things, Vital has moved into the new KWIVER repository and development of the standalone Vital repository is discontinued. The plugins from MAP-Tk have also been copied into the new KWIVER repository are are now called Arrows. The next release of MAP-Tk will lose its copy of the plugins and build directly against KWIVER to access Vital and Arrows. In essence, the computing framework and algorithms developed originally as MAP-Tk are becoming the KWIVER toolkit. The photogrammetry applications (the GUI, command line tools, and scripts) will remain in the MAP-Tk repository. KWIVER is already growing into new areas, like object recognition with CNNs, this growth and a larger user base will benefit MAP-Tk in the long run.