c'tor reads the following from the command options: 1) read by mainVidSet or mainImSet 2) video/image-set that the models were trained on 3) filename of the concepts for which there are models 4) 'model type' 5) featuredef or precomputed kernel name pathCreator is passed to the c'tor so that some of its values can be set these settings are used in NextPath() to create the corect path. Definition at line 49 of file ApplyConcepts.h. References Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, Impala::Core::Training::ApplyConceptsHelper::Initialise(), Impala::Core::Feature::ConceptSet::MakeFromFile(), MakeHelper(), Impala::Core::Database::MakeRawDataSet(), mAnnoSet, mConceptSet, mHelper, Impala::Core::Database::PathCreator::SetConceptSet(), Impala::Core::Database::PathCreator::SetFeature(), and Impala::Core::Database::PathCreator::SetModel(). 00050 { 00051 if (options.GetNrArg() < 6) 00052 { 00053 ILOG_ERROR("Missing argument"); 00054 return; 00055 } 00056 /* mAnnoSet is created and deleted in this class, but both types of 00057 helpers use it also. Construction is done here becasue we need it 00058 to create the ConceptSet. 00059 */ 00060 mAnnoSet = Database::MakeRawDataSet(options.GetArg(2)); 00061 String conceptFileName = options.GetArg(3); 00062 String modelType = options.GetArg(4); 00063 String featureName = options.GetArg(5); 00064 mConceptSet = ConceptSet::MakeFromFile(mAnnoSet, conceptFileName, modelType); 00065 00066 mHelper = MakeHelper(options.GetBool("precomputed")); 00067 mHelper->Initialise(mAnnoSet, featureName); 00068 00069 pathCreator->SetConceptSet(conceptFileName); 00070 pathCreator->SetFeature(featureName); 00071 pathCreator->SetModel(modelType); 00072 }
Here is the call graph for this function:
|