Changed to 2.4 version of OpenCV

Like requested, changed pull request against 2.4. Fixes the bug #3131 which has no breakpoints in the switch structure.