Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
extract fhog with dlib and openframeworks
void drawFHOG(ofPixels store, int x, int y)
ofPixels pix;
ofImage debug;
array2d<matrix<float,31,1> > hog;
array2d<rgb_pixel> img;
toDLib(store,img);//<-- view ofxDLib
extract_fhog_features(img, hog);
matrix<unsigned char> df = draw_fhog(hog);
int hf =;
int wf =;
pix.allocate(wf, hf, OF_IMAGE_COLOR);
for(int r = 0; r < hf; r++)
for(int c = 0; c < wf; c++)
pix.setColor(c, r, ofColor(df(r,c)));
debug = pix;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.