1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef VCNormalizeINCLUDE
- #define VCNormalizeINCLUDE
- #include "core/vector/VectorT.h"
- #include "core/vector/MatrixT.h"
- #include "vislearning/math/ftransform/FTransform.h"
- #include "vislearning/classifier/classifierbase/VecClassifier.h"
- namespace OBJREC
- {
- class VCNormalize: public VecClassifier
- {
- protected:
- VecClassifier * classifier;
- LabeledSetVector transformedSet;
- uint mode;
- NICE::Vector vector_max;
- NICE::Vector vector_min;
- NICE::Vector vector_span;
- NICE::Vector getNormalizedVector(const NICE::Vector &x) const;
- public:
-
- VCNormalize(const NICE::Config *conf, VecClassifier * classifier);
-
- virtual ~VCNormalize();
-
- ClassificationResult classify(const NICE::Vector & x) const;
- void teach(const LabeledSetVector & teachSet);
- void finishTeaching();
- void restore(std::istream & is, int format = 0);
- void store(std::ostream & is, int format = 0) const;
- void clear();
- };
- }
- #endif
|