Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signed HOG descriptor

Tags:

opencv

I am using the HOGDescriptor class in OpenCV for object detection. It seems to me that the implementation only uses unsigned gradients, so it's unable to make the distinction between light->dark and dark->light transitions, a feature I would really need. Does anyone know an implementation of HOG that uses signed gradients?

Thanks!

like image 506
Adi Andon Avatar asked Mar 31 '26 21:03

Adi Andon


1 Answers

I guess you can use the 'unsigned' and 'signed' parameter with OpenCV implementation, you only need specify the degrees. The orientation bins are evenly spaced over 0◦ – 180◦ (“unsigned” gradient) or 0◦ –360◦ (“signed” gradient).

like image 70
omar Avatar answered Apr 03 '26 16:04

omar