Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Core::DataFactory Class Reference

This class should hide all annoying detials about data sets. More...

#include <DataFactory.h>

Collaboration diagram for Impala::Core::DataFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DataFactory (Database::RawDataSet *set, Util::Database *db, int quidClass, String conceptSet, String modelType, Feature::FeatureDefinition fdef, String kernelMatrixName, int conceptStart, int conceptNumber)
 
Note:
many args: it's clear that this class needs configuration objects

virtual ~DataFactory ()
Array::Array2dVec3UInt8MakeImage (Quid q)
std::vector< StringMakeConceptList ()
int FeatureTableCount () const
Feature::FeatureTableMakeFeatureTable (int videoId)
 when used for imagesets argument videoId is assumed to be the dirId
Table::QuidTableMakeAllFeatureQuids ()
Table::QuidTableMakeTrainFeatureQuids ()
 There is a problem with the regression tests for Core/Training: The test reuses data from another set, that's why the setid in the quids is wrong.
Table::AnnotationTableMakeAnnotation (String concept)
bool CanMakeBestFile (String concept)
bool CanMakeConceptModel (String concept)
Util::IOBufferMakeBestFile (String concept, bool toWrite)
Util::IOBufferMakeBestFileWrite (String concept)
Util::IOBufferMakeAllParametersFile (String concept)
Database::RawDataSetGetDataSet ()
Matrix::DistributedAccessGetDistributedAccess ()
 hmm this is not right, the decission how many nodes work together in the distributed kernel should be made elsewhere.
void ServeDistributedAccess ()
void WriteConceptModel (String concept, Training::Classifier *c)
 It would be better if there was a function to open a IOBuffer and the classifier saves itself to this IOBuffer.
void WriteScoreOnSelf (String concept, double score)
bool CanWriteCodebook ()
void WriteRandomForest (Feature::RandomTreeTable *forest)
void WriteCodebook (Feature::FeatureTable *forest)
Feature::FeatureDefinition GetFeatureDefinition ()

Private Member Functions

void GetPartialTask (CmdOptions &options, std::vector< String > conceptList, int &start, int &end)

Private Attributes

Database::RawDataSetmDataSet
Util::DatabasemDb
int mQuidClass
int mConceptStart
int mConceptNumber
String mConceptSet
String mModelType
Feature::FeatureDefinition mFeatureDef
String mKernelMatrixName
Matrix::DistributedAccessmDistributedAccess
 ILOG_VAR_DECL

Detailed Description

This class should hide all annoying detials about data sets.

It provides a simple interface to get to all necessary data.

Todo:
Right now this class assumes a video set. We should find a way to generalise to RawDataSet, although perhaps those classes will be refactored anyway.

Definition at line 29 of file DataFactory.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 10:55:43 2010 for ImpalaSrc by  doxygen 1.5.1