Ask Your Question
0

Background subtraction with Codebook Algorithm

asked 2014-01-09 05:48:17 -0600

updated 2014-01-09 06:01:32 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-01-10 08:08:04 -0600

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
edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-01-09 05:48:17 -0600

Seen: 3,520 times

Last updated: Jan 10 '14