outline of 'else if (-dot > best_dot) ... best_ori=ori+9' code for hog angle calculation