I am using opencv 4.1. for computing hog descriptors. Here is the constructor of hog:
HOGDescriptor hog(Size(20,20),
Size(8,8),
Size(4,4),
Size(4,4),
9,
1,
-1,
0, //this argument causes the compiling error
0.2,
0,
64,
1);
It gives the error:
C2664: 'cv::HOGDescriptor::HOGDescriptor(const cv::HOGDescriptor &)': cannot convert argument 8 from 'int' to 'cv::HOGDescriptor::HistogramNormType'
What is the problem with the argument 8?