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 {