ROIBox: Correct size, given x_min <= x <= x_max and y_min <= y <= y_max is allowed

This commit is contained in:
2026-04-15 11:17:56 +02:00
parent 694c250b3e
commit de5b113273
+2 -2
View File
@@ -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 {