1 #if !defined(_FEATUREVECTORPRODUCER_) 2 #define _FEATUREVECTORPRODUCER_ 84 const MLClassPtr knownClass,
86 float priorReductionFactor,
100 const MLClassPtr knownClass,
165 static bool atExitDefined;
170 #define _FeatureVectorProducer_Defined_ #define _FactoryFVProducer_Defined_
__int16 kkint16
16 bit signed integer.
virtual const type_info * FeatureVectorTypeId() const =0
Returns the 'type_info' of the FeatureVector that this instance of 'FeatureVectorProducer' creates...
#define _MLClass_Defined_
virtual FeatureVectorListPtr ManufacturFeatureVectorList(bool owner, RunLog &runLog) const =0
Manufactures a instance of a derived 'FeatureVectorList' class that is appropriate for containing ins...
FeatureVector * FeatureVectorPtr
virtual kkint16 Version() const =0
virtual ~FeatureVectorProducer()
#define _FeatureVector_Defined_
A class that is used by to represent a single image in memory.
FileDescConstPtr FileDesc() const
Returns back a "FileDesc" instance that describes the features that this instance of 'FeatureVectorPr...
virtual FileDescPtr DefineFileDesc() const =0
#define _FileDesc_Defined_
unsigned __int32 kkuint32
const KKStr & FeatureName(kkuint32 fieldNum) const
RasterList * RasterListPtr
virtual const type_info * FeatureVectorListTypeId() const =0
Returns the 'type_info' of the FeatureVectorList derived class that can contain instances in 'Feature...
#define _FeatureVectorList_Defined_
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
virtual FeatureVectorPtr ComputeFeatureVector(const Raster &image, const MLClassPtr knownClass, RasterListPtr intermediateImages, float priorReductionFactor, RunLog &runLog)=0
Compute a FeatureVector for the supplied 'image'.
virtual FeatureVectorPtr ComputeFeatureVectorFromImage(const KKStr &fileName, const MLClassPtr knownClass, RasterListPtr intermediateImages, RunLog &runLog)
Compute a FeatureVector from the image file specified by 'fileName'.
FactoryFVProducerPtr Factory() const
Returns pointer to factory that instantiated this instance.
kkuint32 MaxNumOfFeatures()
const KKStr & Name() const
Returns a kkint16 description of the FeatureVector which can be used as part/all of a File or Directo...
FeatureVectorProducer * FeatureVectorProducerPtr
kkuint32 FeatureCount() const
FeatureVectorProducer(const KKStr &_name, FactoryFVProducerPtr _factory)
Used for logging messages.
void EncodeProblem(const struct svm_paramater ¶m, struct svm_problem &prob_in, struct svm_problem &prob_out)
FeatureVectorProducer * FeatureVectorProducerPtr
FeatureVectorList * FeatureVectorListPtr
A abstract class that is meant to compute a FeatureVector from a source image.
FactoryFVProducer * FactoryFVProducerPtr