This is the companion code for our work on Local Binary Descriptors (LBD) reconstruction:
- From Bits to Images: Inversion of Local Binary Descriptors (submitted) [pre-print]
- Beyond Bits: Reconstructing Images from Local Binary Descriptors, ICPR 2012 [pre-print]
It was used to generate the figures in the above references.
Installing the code
The software is written in C++. Installing and using it should be straightforward for any platform where the dependencies are satisfied. Note however that it was developed and tested on MacOS X 10.7 only.
- Cmake >= 2.8, http://www.cmake.org
- OpenCV >= 2.4, http://opencv.org
- (optional) Doxygen, http://www.doxygen.org
- (optional) libdispatch (a.k.a. Grand Central Dispatch on MacOS)
Optionally, the code can take advantage of Grand Central Dispatch on platforms that provide an implementation of libdispatch (MacOS, Linux, FreeBSD...).
You should respect the Cmake approach of out-of-source building for better results. When using Cmake from the command line, the following specific options are available:
- WITH_DISPATCH (ON/OFF, default: OFF) : use Grand Central Dispatch for parallel execution
- BUILD_DOC (ON/OFF, default. OFF) : build the documentation with Doxygen (not much to build right now...)
The code implements the following reconstruction algorithms:
- non-binary, Total Variation + L1 error (TV-L1) reconstruction, primal-dual solver used in this paper
- non-binary, Wavelet sparsity + L1 error (W-L1) reconstruction, primal-dual solver presented in Section 3.1 of this paper
- binary, wavelet sparsity + binary consistency reconstruction, Binary Iterative Hard Thresholding (BIHT) solver presented in Section 3.2
The Local Binary Descriptors were re-written from scratch in order to provide more flexibility and to fit in the optimization framework. The following LBDs are implemented:
- Binary Robust Independent Elementary Feature (BRIEF) in its uniform distribution variant
- Fast Retina Keypoint (FREAK)
- Random FREAK: similar to FREAK with random selection of the difference pairs instead
- Exhaustive FREAK: similar to FREAK but uses all the possible difference pairs instead.
New LBDs can be added by subclassing the abstract class
The layout of the code is as follows:
|-- LBDReconstruction : small static library implementing LBDs and reconstruction algorithms
|-- utils : various command line tools to plot, draw, compute constants...
|-- real : command line tools to apply the TV-L1 and W-L1 algorithms above
|-- binary : command line tools to apply the BIHT algorithm above
If the name of a file starts with an
I, it declares or implements an abstract class.
- Example : the file
ILinearOperator.hppdeclares the abstract class
All the classes are embedded in an
- Improve Doxygen documentation
- Unify files/functions/classes naming patterns
- More flexible optimization (math) functions using C++11
- Replace Grand Central Dispatch with OpenCV's new parallel_for()
- Faster wavelet transform (using a parallel algorithm)
From Bits to Images: Inversion of Local Binary Descriptors [pre-print]
E. d'Angelo, L. Jacques, A. Alahi, P. Vandergheynst
Beyond Bits: Reconstructing Images from Local Binary Descriptors [pre-print]
E. d'Angelo, A. Alahi, P. Vandergheynst
21st International Conference on Pattern Recognition (ICPR), 2012.
Binary Robust Independent Elementary Features [homepage]
M. Calonder, V. Lepetit, C. Strecha, P. Fua 11th European Conference on Computer Vision (ECCV), 2010.