Monocular pose measurement using contour image length matching in range