compatibility with opencv 2.4.4