24 using namespace KKMLL;
29 FactoryFVProducerPtr _factory
48 const MLClassPtr knownClass,
53 FeatureVectorPtr fv = NULL;
58 runLog.Level (-1) <<
"FeatureVectorProducer::ComputeFeatureVectorFromImage ***ERROR*** Error loading ImageFile: " << fileName << endl << endl;
105 if (fileDesc == NULL)
Provides a detailed description of the attributes of a dataset.
static FileDescPtr GetExistingFileDesc(FileDescPtr fileDesc)
Returns a pointer to an existing instance of 'fileDesc' if it exists, otherwise will use one being pa...
kkuint32 NumOfFields() const
virtual ~FeatureVectorProducer()
FileDescConstPtr FileDesc() const
Returns back a "FileDesc" instance that describes the features that this instance of 'FeatureVectorPr...
virtual FileDescPtr DefineFileDesc() const =0
const KKStr & FieldName(kkint32 fieldNum) const
unsigned __int32 kkuint32
RasterPtr ReadImage(const KKStr &imageFileName)
const KKStr & FeatureName(kkuint32 fieldNum) const
RasterList * RasterListPtr
KKStr(const KKStr &str)
Copy Constructor.
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'.
static const KKStr & EmptyStr()
Static method that returns an Empty String.
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)
Maintains one instance of a GoalKeeper object that can be used anywhere in the application.
A abstract class that is meant to compute a FeatureVector from a source image.