Get default number of maximum features given width and height (5% of total pixels at a minimum of 1)
| 175 | |
| 176 | // Get default number of maximum features given width and height (5% of total pixels at a minimum of 1) |
| 177 | inline int GetDefaultMaxFeatures(int width, int height) |
| 178 | { |
| 179 | return std::max(width * height / 20, 1); |
| 180 | } |
| 181 | |
| 182 | TupleTensor4 SIFT(Tensor &in, int maxFeatures, int numOctaveLayers, float contrastThreshold, float edgeThreshold, |
| 183 | float initSigma, NVCVSIFTFlagType flags, std::optional<Stream> pstream) |