SCV-21: enforce strict casting on parameters going into opencv API calls