MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / GetDefaultMaxFeatures

Function GetDefaultMaxFeatures

python/mod_cvcuda/operators/OpSIFT.cpp:177–180  ·  view source on GitHub ↗

Get default number of maximum features given width and height (5% of total pixels at a minimum of 1)

Source from the content-addressed store, hash-verified

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

Callers 1

SIFTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected