I have one problem in the second stage, which is the accumulation of weighted votes to orient the gradient along spatial cells.
Assuming the cell is 8*8 . Let me use two matrices GO[8][8]([1 9]) , GM[8][8] to represent the gradient orientation and the gradient value, respectively. The orientation of the gradient ranges from 0 - 180 , and there are 9 orientation baskets.
According to my understanding of HOG for each pixel in a cell, adding its gradient value to the corresponding orientation buffer. Thus, we can have a histogram for each cell.
But there is one sentence that scares me.
"To reduce overlap, the number of votes (gradient value) is interpolated trilinearly between adjacent bin centers in both orientations and position." one
Why is it interpolated? How to interpolate? Can someone explain in more detail? No reduction in smoothing.
Thanks in advance.
1 This proposal is in the dissertation of Navneet Dalal PHD, p38, line 4.
opencv computer-vision
Fihop
source share