3

I am using HOG for detection of objects in my project. However when the object rotates the hog fails to correctly detect the object. Hence my confusion is that whether like SURF, SIFT, is HOG also rotation and transformation inVariance.

If not than I think I should perform affine transformation when computing HOG. Please advice me on this. Thank you.

2 Answers 2

3

HOG is not a rotation-scale invariant descriptor. Typically multi-scale detectors run the train detector at different image scales (as OpenCV detector does). For rotation invariance you can look at rotation invariant descriptors (SIFT,SURF,ORB,...). Alternatively you can simply include in your training set object appearing at various poses. However, this will include more complexity and uncertainty in the detector and depending on the objects you are trying to detect it might not be a viable solution.

2
  • just one question. If i compute HOG of the image by performing affine transformation at several steps. Does this makes it rotation invariance.
    – kcc__
    Jan 11, 2014 at 15:33
  • Typically a detector needs to be real-time. If you have to compute the features on the image at multiple affine transformations will make the detector extremely slow. As I mentioned in my answer, I would train the detector with multiple views of the objects instead as training can be performed offline.
    – Algold
    Jan 13, 2014 at 18:08
1

What is the question? HOG is not rotation invariant feature. For rotation invariance use SIFT (RIFT) or rotate your image manually: find the main orientation of the descriptor, and assign that angle to the keypoint.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.