Manipulating mouse event-video processing

hi master.. i make an image and video processing, moving cursor using myfingertips via webcam. I have succesfully moving my cursor.
Now, i must set my cursor's action. for example, when detecting 2 finger then cursor's action is left-click. when detecting 3 finger then cursor's action is right-click.
How can i do it? :)

Asked:

on 29 Jun 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!