use better cast

pull/414/head
Clint Pells 9 years ago
parent c5a273f5a8
commit 06eb62c630
  1. 2
      modules/cvv/src/view/linematchview.cpp
  2. 2
      modules/cvv/src/view/pointmatchview.cpp
  3. 2
      modules/cvv/src/view/translationsmatchview.cpp

@ -45,7 +45,7 @@ LineMatchView::LineMatchView(std::vector<cv::KeyPoint> leftKeyPoints,
qtutil::MatchScene *matchscene_ptr = matchscene.get();
int updateAreaDelay=std::min(std::max(matches.size(),
std::max(leftKeyPoints.size(),
rightKeyPoints.size()))/10,50lu);
rightKeyPoints.size()))/(std::size_t)10,(std::size_t)50);
matchscene_ptr->getLeftImage().setUpdateAreaDelay(updateAreaDelay);
matchscene_ptr->getRightImage().setUpdateAreaDelay(updateAreaDelay);

@ -30,7 +30,7 @@ PointMatchView::PointMatchView(std::vector<cv::KeyPoint> leftKeyPoints,
auto matchmnt = util::make_unique<qtutil::MatchManagement>(matches);
qtutil::MatchScene *matchscene_ptr = matchscene.get();
int updateAreaDelay=std::min(std::max(matches.size(),std::max(leftKeyPoints.size(),rightKeyPoints.size()))/10,50lu);
int updateAreaDelay=std::min(std::max(matches.size(),std::max(leftKeyPoints.size(),rightKeyPoints.size()))/(std::size_t)10,(std::size_t)50);
matchscene_ptr->getLeftImage().setUpdateAreaDelay(updateAreaDelay);
matchscene_ptr->getRightImage().setUpdateAreaDelay(updateAreaDelay);

@ -39,7 +39,7 @@ TranslationMatchView::TranslationMatchView(
auto keyPointmnt = util::make_unique<qtutil::KeyPointManagement>(allkeypoints);
qtutil::MatchScene *matchscene_ptr = matchscene.get();
int updateAreaDelay=std::min(std::max(matches.size(),std::max(leftKeyPoints.size(),rightKeyPoints.size()))/10,50lu);
int updateAreaDelay=std::min(std::max(matches.size(),std::max(leftKeyPoints.size(),rightKeyPoints.size()))/(std::size_t)10,(std::size_t)50);
matchscene_ptr->getLeftImage().setUpdateAreaDelay(updateAreaDelay);
matchscene_ptr->getRightImage().setUpdateAreaDelay(updateAreaDelay);

Loading…
Cancel
Save