computes the descriptor proposed by dalal and triggs