mirror of
https://github.com/modelec/detection_pot.git
synced 2026-03-18 21:40:33 +01:00
croissant ordering
This commit is contained in:
@@ -217,7 +217,7 @@ std::pair<int, std::vector<std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>>> Ar
|
|||||||
|
|
||||||
std::sort(result.second.begin(), result.second.end(), [this](const std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>& a, const std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>& b)
|
std::sort(result.second.begin(), result.second.end(), [this](const std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>& a, const std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>& b)
|
||||||
{
|
{
|
||||||
return distanceBetweenRobotAndTagOnXY(a.second.first) > distanceBetweenRobotAndTagOnXY(b.second.first);
|
return distanceBetweenRobotAndTagOnXY(a.second.first) < distanceBetweenRobotAndTagOnXY(b.second.first);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!headless)
|
if (!headless)
|
||||||
|
|||||||
Reference in New Issue
Block a user