static version working with opencv hogdescriptor