You basically call a function to snap an image into an array, such as getsnapshot() or getdata().
Then you do image analysis or image processing on that frame you just grabbed.
See my File Exchange for an Image Segmentation Tutorial.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!