diff --git a/src/fswAlgorithms/imageProcessing/regionsOfInterest/regionsOfInterestAlgorithm.cpp b/src/fswAlgorithms/imageProcessing/regionsOfInterest/regionsOfInterestAlgorithm.cpp index 52038a7e0..ae66676fd 100644 --- a/src/fswAlgorithms/imageProcessing/regionsOfInterest/regionsOfInterestAlgorithm.cpp +++ b/src/fswAlgorithms/imageProcessing/regionsOfInterest/regionsOfInterestAlgorithm.cpp @@ -81,7 +81,7 @@ std::array RegionsOfInterestAlgorithm::ord const std::array& regions) { std::array sorted = regions; std::ranges::sort(sorted.begin(), sorted.end(), [](const RegionOfInterest& a, const RegionOfInterest& b) { - return a.numberOfPixels >= b.numberOfPixels; + return a.numberOfPixels > b.numberOfPixels; }); return sorted; }