fix build on Hydro
use a non OpenCV 1 API