title: Display live processed webcam stream using matlab
body: <p>I am trying to employ a chroma key algorithm on a live video. I need to take a live webcam input, process it in real time and display it. I already have the chroma key algorithm working on images.</p>
  
  <p>How do I process the webcam input and display it immediately. I have tried using snapshot() and passing the image to the chroma key algorithm but it is too slow even if I increase the rate of snapshots. I want a smooth output.</p>
  
  <p>[ Also, if there is a better alternative than Matlab please let me know. ]</p>