Codebook for opencv

The only things i understand about codebook is that it can be used to build a more complex model of the background. Can anyone explain to me how codebook work? It will be best if you can provide me the source code as well!

Thank you so so much! =)
Topic archived. No new replies allowed.