Ask Your Question
1

HOGDescriptor window size adjustment adjustment

asked 2016-02-18 12:17:21 -0600

kim gravatar image

updated 2016-08-21 13:28:07 -0600

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-02-18 12:40:53 -0600

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??

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-18 12:17:21 -0600

Seen: 834 times

Last updated: Feb 18 '16