Works for Opencv 2.4.10