I came accross this Codebook algorithm, for which OpenCV seems to have an implementation. I found the following source code: link
I tried to compile it but I get several compilation erros like the following.
grfmt_exr.cpp:(.text._ZN2cv10ExrDecoder10readHeaderEv+0x30): undefined reference to `Imf::InputFile::InputFile(char const*, int)'
After some digging, I found out that these undefined referenced functions belong to this library openEXR that hasn't been updated to be compatible with OpenCV 2.x.
So, is there a opencv implementation of this algorithm so I can perform some tests?