title: Gesture Recognition Algorithm - Kinect
body: <p>I'm developing an application for the Kinect for my final year university project, and I have a requirement to develop a number of gesture recognition algorithms. I'd appreciate some advice on this.</p>
  
  <p>My initial algorithm is detecting the users hand moving closer towards the kinect, within a certain time frame. For now i'll say this is an arbitrary 500ms.</p>
  
  <p>My idea is as follows:</p>
  
  <ul>
  <li>Record z-axis position every 100ms and store in List.</li>
  <li>Each time a new position is recorded, check the z-position for each of the previous 4 positions in the List.</li>
  <li>If the z position has varied by the required distance between any of those individually or collectively, fire off a gesture recognised event.</li>
  <li>If gesture recognised, clear List, and start again.</li>
  </ul>
  
  <p>This is the first time that I have tried anything like this, and would like some advise on my initial naive implementation.</p>
  
  <p>Thanks.</p>