position in inner rect
| 53 | } |
| 54 | //position in inner rect |
| 55 | cv::Point innerPoint()const { |
| 56 | auto outer = outerPoint(); |
| 57 | auto innerRect = projection().innerRect(); |
| 58 | return cv::Point(outer.x - innerRect.x, outer.y - innerRect.y); |
| 59 | } |
| 60 | //position in logical coordinates |
| 61 | cv::Point2d pos()const { |
| 62 | return projection().unproject(innerPoint()); |