MCPcopy Create free account
hub / github.com/colmap/colmap / L1RootNormalizeFeatureDescriptors

Function L1RootNormalizeFeatureDescriptors

src/colmap/feature/utils.cc:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void L1RootNormalizeFeatureDescriptors(
50 FeatureDescriptorsFloatData* descriptors) {
51 for (Eigen::Index r = 0; r < descriptors->rows(); ++r) {
52 descriptors->row(r) *= 1 / descriptors->row(r).lpNorm<1>();
53 descriptors->row(r) = descriptors->row(r).array().sqrt();
54 }
55}
56
57FeatureDescriptorsData FeatureDescriptorsToUnsignedByte(
58 const Eigen::Ref<const FeatureDescriptorsFloatData>& descriptors) {

Callers 4

ExtractMethod · 0.85
ExtractMethod · 0.85
ExtractMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68