From de5b113273d17fcbf58e47347e63f8265384543f Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Wed, 15 Apr 2026 11:17:56 +0200 Subject: [PATCH] ROIBox: Correct size, given x_min <= x <= x_max and y_min <= y <= y_max is allowed --- common/ROIBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/ROIBox.cpp b/common/ROIBox.cpp index 156cc841..88bfb1e1 100644 --- a/common/ROIBox.cpp +++ b/common/ROIBox.cpp @@ -44,11 +44,11 @@ int64_t ROIBox::GetYMax() const { } int64_t ROIBox::GetWidth() const { - return x_max - x_min; + return x_max - x_min + 1; } int64_t ROIBox::GetHeight() const { - return y_max - y_min; + return y_max - y_min + 1; } int64_t ROIBox::GetArea() const {