ROIBox: Correct size, given x_min <= x <= x_max and y_min <= y <= y_max is allowed
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user