在matchers.cpp中的BFMatcher :: knnMatchImpl中,有以下代码:
https://github.com/Itseez/opencv/blob/master/modules/features2d/src/matchers.cpp#L728
const int IMGIDX_SHIFT = 18;
const int IMGIDX_ONE =(1 << IMGIDX_SHIFT);
https://github.com/Itseez/opencv/blob/master/modules/features2d/src/matchers.cpp#L825
CV_Assert(trainDescCollection [iIdx] .rows
此断言的意义仅在于确保训练描述符的数量不能大于262144,而与所使用的计算机无关吗?