First time here? Check out the FAQ!

Ask Your Question
1

HOGDescriptor window size adjustment adjustment

asked Feb 18 '16

kim gravatar image

updated Aug 21 '16

I am using HOGDescriptor::compute to get the HOG feature descriptor in the input image, but my input image if of size 80x64 of which HOG feature descriptor is required. AS default window size of HOGDescriptor is 64x128 so the program end with exception. that is why i need to change the default window size of HOGDescriptor equal to input image to avoid the exception. i read HOG documentation at [http://docs.opencv.org/3.1.0/d5/d33/s...] but don't understand.. if possible kindly help me

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Feb 18 '16

kim gravatar image

i fixed it with: HOGDescriptor d; d.winSize = Size(80,64);

and it resulted in correct number of feature descriptors, i think its right way of parameter setting. is it??

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Feb 18 '16

Seen: 909 times

Last updated: Feb 18 '16