| 159 | } |
| 160 | |
| 161 | void Query(const QueryOptions& options, |
| 162 | const FeatureDescriptorsFloat& descriptors, |
| 163 | std::vector<ImageScore>* image_scores) const override { |
| 164 | THROW_CHECK_EQ(descriptors.data.cols(), kDescDim); |
| 165 | THROW_CHECK_EQ(descriptors.type, feature_type_) |
| 166 | << "Feature type mismatch: index was built with " |
| 167 | << FeatureExtractorTypeToString(feature_type_) << " but received " |
| 168 | << FeatureExtractorTypeToString(descriptors.type); |
| 169 | Query(options, /*keypoints=*/{}, descriptors, image_scores); |
| 170 | } |
| 171 | |
| 172 | void Query(const QueryOptions& options, |
| 173 | const FeatureKeypoints& keypoints, |
no test coverage detected