Hand gesture control using histogram analysis