src/object_detection_2d/src/gui.cpp
////////////////////////////////////////////////////////////////////////////////
//
// Private slots & related functions.
//
Private slots & related functions.
Private slots & related functions .
void GUI::areaSelected(const QRect& q_area)
{
  QRect norm_area {q_area.normalized()};
  cv::Rect cv_area {norm_area.left(), norm_area.top(),
    norm_area.width(), norm_area.height()};
  for (auto& cb : area_selection_cbs_)
    cb(cv_area);
}
void GUI :: areaSelected ( const QRect & q_area ) { QRect norm_area { q_area . normalized ( ) } ; cv :: Rect cv_area { norm_area . left ( ) , norm_area . top ( ) , norm_area . width ( ) , norm_area . height ( ) } ; for ( auto & cb : area_selection_cbs_ ) cb ( cv_area ) ; }
Private slots & related functions.
Private slots & related functions .