invert HOG triangle