Extracting HoG Features using OpenCV

You can use hog class in opencv as follows HOGDescriptor hog; vector<float> ders; vector<Point> locs; This function computes the hog features for you hog.compute(grayImg, ders, Size(32, 32), Size(0, 0), locs); The HOG features computed for grayImg are stored in ders vector to make it into a matrix, which can be used later for training. Mat … Read more