#include "mf.h"
#include "featdefs.h"
#include "mfdefs.h"
#include "mfx.h"
#include <cmath>
Go to the source code of this file.
◆ ExtractMicros()
Call the old micro-feature extractor and then copy the features into the new format. Then deallocate the old micro-features.
- Parameters
-
Blob | blob to extract micro-features from |
cn_denorm | control parameter to feature extractor. |
- Returns
- Micro-features for Blob.
Definition at line 43 of file mf.cpp.
43 {
44 int NumFeatures;
49
51 if (OldFeatures == nullptr)
52 return nullptr;
53 NumFeatures =
count (OldFeatures);
55
56 Features = OldFeatures;
64
65
68
69#ifndef _WIN32
70
71 int i;
74 }
75#endif
76
78 }
80 return FeatureSet;
81}
const FEATURE_DESC_STRUCT MicroFeatureDesc
void FreeMicroFeatures(MICROFEATURES MicroFeatures)
MICROFEATURES BlobMicroFeatures(TBLOB *Blob, const DENORM &cn_denorm)
FEATURE NewFeature(const FEATURE_DESC_STRUCT *FeatureDesc)
bool AddFeature(FEATURE_SET FeatureSet, FEATURE Feature)
FEATURE_SET NewFeatureSet(int NumFeatures)
const FEATURE_DESC_STRUCT * Type