UniBwTAS/apriltags_tas

Mismatch between image width / height

Closed this issue · 1 comments

Hi,

x_range.second = std::min(x_range.second + 10, static_cast<float>(img.size[0] - 1));

y_range.second = std::min(y_range.second + 10, static_cast<float>(img.size[1] - 1));

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.

Is fixed, thanks for the hint!