Funcs to evaluation the performance of ASM algorithm
Functions to calculate HOG feature
update.