Update sample and code with external computation of HOG detector.