First time here? Check out the FAQ!

Ask Your Question
0

Background subtraction with Codebook Algorithm

asked Jan 9 '14

updated Jan 9 '14

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 errors 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 more recent opencv implementation of this algorithm so I can perform some tests?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Jan 10 '14

Nghia gravatar image

Try using the one at sample/c/bgfg_codebook.cpp. It compiles fine for me on Linux

 g++ bgfg_codebook.cpp -o bgfg_codebook -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_legacy
Preview: (hide)

Question Tools

Stats

Asked: Jan 9 '14

Seen: 3,573 times

Last updated: Jan 10 '14