1 #if !defined(_FACTORYFVPRODUCER_) 2 #define _FACTORYFVPRODUCER_ 23 #if !defined(_FeatureVectorProducer_Defined_) 41 #if !defined(_TrainingConfiguration2_Defined_) 78 const KKStr& _fvClassName,
79 const KKStr& _description
176 static void FinaleCleanUp ();
178 static bool atExitDefined;
180 typedef std::map<KKStr,FactoryFVProducerPtr> FactoryMap;
181 static FactoryMap* factories;
186 #define _FactoryFVProducer_Defined_ const KKStr & Description() const
FeatureVector * FeatureVectorPtr
const KKStr & FvClassName() const
#define _FeatureVector_Defined_
FactoryFVProducer(const KKStr &_name, const KKStr &_fvClassName, const KKStr &_description)
static FactoryFVProducerPtr LookUpFactory(const KKStr &name)
Returns pointer to existing instance of 'FactoryFVProducer' that was previously registered with 'name...
static void RegisterFactory(FactoryFVProducerPtr factory, RunLog *runLog)
This is where you register newly instantiated instances of 'FactoryFVProducer' derived classes...
#define _FileDesc_Defined_
#define _FeatureFileIO_Defined_
virtual const type_info * FeatureVectorTypeId() const =0
Returns the 'type_info' of the FeatureVector that this instance of 'FactoryFVProducer' works with...
virtual const type_info * FeatureVectorListTypeId() const =0
Returns the 'type_info' of the FeatureVectorList that this instance of 'FactoryFVProducer' will creat...
FeatureFileIO * FeatureFileIOPtr
virtual FeatureVectorListPtr ManufacturFeatureVectorList(bool owner, RunLog &runLog) const
Manufactures a instance of a derived 'FeatureVectorList' class that is appropriate for containing ins...
virtual FeatureVectorProducerPtr ManufactureInstance(RunLog &runLog)=0
Derived classes will instantiate appropriate instances of 'FeatureVectorProducer'.
#define _FeatureVectorList_Defined_
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
FactoryFVProducer * FactoryFVProducerPtr
const KKStr & Name() const
static FeatureVectorProducerPtr ManufactureInstance(const KKStr &name, RunLog &runLog)
Will instantiate a new instance of the appropriate 'FeatureVectorProducer' class given the supplied n...
virtual TrainingConfiguration2Ptr ManufacturTrainingConfiguration() const
Returns a 'TrainingConfiguration2' derived instance.
Used for logging messages.
void EncodeProblem(const struct svm_paramater ¶m, struct svm_problem &prob_in, struct svm_problem &prob_out)
Responsible for creating a FeatureFectorProducer instance.
FeatureVectorProducer * FeatureVectorProducerPtr
virtual FeatureVectorPtr ManufacturFeatureVector(kkint32 numOfFeatires, RunLog &runLog)
Manufactures a instance of a derived 'FeatureVector' class that is appropriate for containing instanc...
TrainingConfiguration2 * TrainingConfiguration2Ptr
FeatureVectorList * FeatureVectorListPtr
virtual FileDescPtr FileDesc() const =0
A abstract class that is meant to compute a FeatureVector from a source image.
FactoryFVProducer * FactoryFVProducerPtr
virtual ~FactoryFVProducer()
A Factory can near be deleted until the application terminates; the atexit method will perform the de...
virtual FeatureFileIOPtr DefaultFeatureFileIO() const =0