fix a bug in extractHOGPatchFeature