Commit d255138c authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #414 from cpsandbox:better_cast

parents 3df4d507 06eb62c6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment