41 double x = detection_group_stamp.getTopLeft().m_x + detection_group_stamp.getStamp().getWidth() / 2.0;
42 double y = detection_group_stamp.getTopLeft().m_y + detection_group_stamp.getStamp().getHeight() / 2.0;
44 auto frame_origin = measurement_frame_coordinates->worldToImage(detection_frame_coordinates->imageToWorld(
ImageCoordinate(
x,
y)));
45 auto frame_dx = measurement_frame_coordinates->worldToImage(
47 auto frame_dy = measurement_frame_coordinates->worldToImage(
51 frame_dx.m_x - frame_origin.m_x, frame_dx.m_y - frame_origin.m_y,
52 frame_dy.m_x - frame_origin.m_x, frame_dy.m_y - frame_origin.m_y);
60 double x = detection_boundaries.getMin().m_x + detection_boundaries.getWidth() / 2.0;
61 double y = detection_boundaries.getMin().m_y + detection_boundaries.getHeight() / 2.0;
63 auto frame_origin = measurement_frame_coordinates->worldToImage(detection_frame_coordinates->imageToWorld(
ImageCoordinate(
x,
y)));
64 auto frame_dx = measurement_frame_coordinates->worldToImage(
66 auto frame_dy = measurement_frame_coordinates->worldToImage(
70 frame_dx.m_x - frame_origin.m_x, frame_dx.m_y - frame_origin.m_y,
71 frame_dy.m_x - frame_origin.m_x, frame_dy.m_y - frame_origin.m_y);
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y