scale and orientation estimation