odometry warnings fix

This commit is contained in:
Saratovtsev 2021-12-16 13:52:00 +03:00
parent 196e6aaa50
commit 5714868726

View File

@ -219,7 +219,7 @@ template<typename TMat>
void OdometryFrameImplTMat<TMat>::setPyramidAt(InputArray _img, OdometryFramePyramidType pyrType, size_t level)
{
CV_Assert(pyrType >= 0);
CV_Assert(pyrType < pyramids.size());
CV_Assert((size_t)pyrType < pyramids.size());
CV_Assert(level < pyramids[pyrType].size());
TMat img = getTMat<TMat>(_img);
pyramids[pyrType][level] = img;