Mismatch between image width / height
Closed this issue · 1 comments
s-trinh commented
Hi,
I think it should be (see img.size
variable about the index):
x_range.second = std::min(x_range.second + 10, static_cast<float>(img.size[1] - 1));
and
y_range.second = std::min(y_range.second + 10, static_cast<float>(img.size[0] - 1));
Since it should be row then column in img.size
with OpenCV.
Deleted user commented
Is fixed, thanks for the hint!