title: Code Book Background Subtraction - Everything explodes to become white
body: <p>I am new to the OpenCV background subtraction model that is definte using codebook method.</p>
  
  <p>I was running the sample code <a href="http://read.pudn.com/downloads194/sourcecode/windows/911138/bgfg_codebook.cpp__.htm" rel="nofollow">here</a> and to see how it works, seems a very great approach. I was trying to segment out a cup. Works fine until the cup gets close to the camera at which point the whole output of the both foreground codebook image and codebook connected component image, both turn completely white.</p>
  
  <p>Why does this happen? </p>
  
  <p>Wajih</p>