Ask Your Question
0

Comparing two HOG descriptors vectors

asked 2012-11-04 02:00:49 -0600

Ben-Uri gravatar image

I am using cv::HOGDescriptor (CPU version) to compute descriptors of two images.

Then I would like to compare each window from the first image to each window of the other window of the other image and store location of the two windows that got the best score (nearest by L2 distance) and the distance between them.

What is the best way to access all window descriptors received by cv::HOGDescriptor::compute(...) method?

(This method is not documented, and fills one vector of floats which I don't understand how to interpreted)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-11-05 04:30:31 -0600

sub_o gravatar image

updated 2012-11-05 04:30:57 -0600

Hi Ben-Uri. From what I know the vector should be multiply of 9, which means that it's a flatten version of HoG with 9 bins. Each 9 float in that vector should represent a single cell region (? correct me if I'm wrong).

I'm creating my own HoG using OpenCV's function (besides its own HoG method), and you can find it here: http://code.google.com/p/custom-hog-pedestrian/

edit flag offensive delete link more
0

answered 2014-02-22 04:46:51 -0600

nkint gravatar image

A similar question is asked here:

http://stackoverflow.com/questions/11626140/extracting-hog-features-using-opencv

they just do a hog-to-hog distance accumulating the error.. nothing complicated, just an accumulation error between two float array (the two hog must be of the same size of course)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-04 02:00:49 -0600

Seen: 6,925 times

Last updated: Feb 22 '14