}
void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector<KeyPoint>& keypoints, Mat& imgDescriptor,
- std::vector<std::vector<int> >* pointIdxsOfClusters, Mat* _descriptors )
+ std::vector<std::vector<int> >* pointIdxsOfClusters, Mat* descriptors )
{
imgDescriptor.release();
compute( descriptors, imgDescriptor, pointIdxsOfClusters );
// Add the descriptors of image keypoints
- if (_descriptors) {
- *_descriptors = descriptors.clone();
+ if (descriptors) {
+ *descriptors = descriptors.clone();
}
}