HOG from data