title: motempl.c: cvCalcGlobalOrientation always get 0 angle in Ubuntu Linux?
body: <p>I am doing a project which involve the motempl.c in opencv, which I use it to detect the motion and direction of the moving objects.</p>
  
  <p>However, one weird thing happened as the motempl.c is running flawlessly in window (I use window studio 2010), but when I run it in linux platform, everything seems normal, except the angle which displayed in the small red and the big white circles always zero.</p>
  
  <p>I compare the codes between the Window and the Ubuntu, and they are the same.</p>
  
  <p>So, after I am checking again, I am suspecting this is caused by the cvCalGlobalOrientation function in opencv.</p>
  
  <p>Can anyone please give some advice about this?</p>
  
  <p>Really appreciate)</p>