Recognize gestures using MATLAB Image Processing Toolbox