Fixed build

This commit is contained in:
matlabbe
2020-11-21 17:12:09 -05:00
parent ccbdb586da
commit ab1aa5578a
2 changed files with 4 additions and 4 deletions

View File

@@ -197,8 +197,8 @@ std::map<int, Transform> MarkerDetector::detect(const cv::Mat & image, const Cam
// Limit the detection range to be between the min / max range.
// If the ranges are -1, allow any detection within that direction.
if((maxRange_ == -1 || tvecs[i].val[2] < maxRange_) &&
(minRange_ == -1 || tvecs[i].val[2] > minRange_))
if((maxRange_ <= 0 || tvecs[i].val[2] < maxRange_) &&
(minRange_ <= 0 || tvecs[i].val[2] > minRange_))
{
cv::Mat R;
cv::Rodrigues(rvecs[i], R);