combine contour and HOG
bug fixed