在matchers.cpp中的BFMatcher::knnMatchImpl中有以下代码:
https://github.com/Itseez/opencv/blob/master/modules/features2d/src/matchers.cpp#L728
常数IMGIDX_SHIFT=18; const int imgidx_one=(1<<imgidx_移位);
常数IMGIDX_SHIFT=18;
const int imgidx_one=(1<<imgidx_移位);
https://github.com/Itseez/opencv/blob/master/modules/features2d/src/matchers.cpp#L825
CV_Assert(traindescollection[iIdx].rows<IMGIDX_ONE);
这个断言的意义是什么,它只确保训练描述符的数量不能超过262144个,而与所使用的计算机无关?