Ask Your Question

tdurham721's profile - activity

2017-10-01 06:15:30 -0600 received badge  Student (source)
2016-07-22 08:27:30 -0600 commented answer Need help understanding how the HOGDescriptor class works in Java 3.1.0

Ok thank you for your help. I will stick to using compute for now.

2016-07-21 14:28:34 -0600 commented answer Need help understanding how the HOGDescriptor class works in Java 3.1.0

Ah ok that makes sense. I could not tell what it was based only off the name windowSize, but that is easy to understand. Do you know anything about the differences in the methods compute and computeGradient? The documentation only lists what parameters to give the methods; it doesn't say anything about what they actually calculate.

2016-07-21 14:28:29 -0600 received badge  Supporter (source)
2016-07-21 13:37:40 -0600 asked a question Need help understanding how the HOGDescriptor class works in Java 3.1.0

I am trying to extract HOG features from an image using OpenCV in Java. I have previously done this in MATLAB using its built in HOG functions, but I am having trouble doing it with OpenCV. In the constructor for HOGDescriptor, there are five parameters. My understanding is that only 16x16 is supported for blockSize, only 8x8 is supported for blockStride and cellSize, and only 9 is supported for nBins. There is no suggestion about what to set the window size to, although the program will throw an exception if both of the values for it are not divisible by 8. A lot of code I found online will set winSize to 64x128, but they don't provide any explanation as to why. What is this parameter for, and what does it do for extracting HOG features from an image? The test image I am using right now is a 196x240 grayscale image.

I am also unsure what the differences between the compute and computeGradient methods are. I honestly cannot find much information about it in the documentation, and I can't figure out what the difference between the two are. If you could help me understand these things, or point me to a good place to read about them, I would appreciate it a lot!

Thanks