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
Definition at line 51 of file ApplyConcepts.h. References Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetBool(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::CmdOptions::GetNrArg(), Impala::CmdOptions::GetString(), ILOG_ERROR, Impala::Core::Training::ApplyConceptsHelper::Initialise(), MakeHelper(), Impala::Core::Database::MakeRawDataSet(), mAnnoSet, mConcepts, mDataSet, mFeatLoc, mHelper, mKernelDataOnly, mModelLoc, mSimSetLoc, and Impala::Persistency::ModelLocator::SetConcept(). 00053 { 00054 if (options.GetNrArg() < 6) 00055 { 00056 ILOG_ERROR("Missing argument"); 00057 return; 00058 } 00059 mDataSet = dataSet; 00060 mAnnoSet = Database::MakeRawDataSet(options.GetArg(2)); 00061 String conceptSet = options.GetArg(3); 00062 String modelType = options.GetArg(4); 00063 String featureName = options.GetArg(5); 00064 Persistency::KeywordListLocator keyLoc(mAnnoSet->GetLocator(), 00065 conceptSet); 00066 mConcepts = *(Persistency::KeywordListRepository().Get(keyLoc)); 00067 00068 String walkType = 00069 (onIndex) ? options.GetString("classifyIndexCat") : "dummy"; 00070 String container = (onIndex) ? "" : "dummy"; 00071 mFeatLoc = FeatureLocator(mDataSet->GetLocator(), false, onIndex, 00072 walkType, featureName, container); 00073 mSimSetLoc = SimilarityTableSetLocator(mDataSet->GetLocator(), onIndex, 00074 walkType, conceptSet, modelType, 00075 featureName, container); 00076 mModelLoc = ModelLocator(mAnnoSet->GetLocator(), conceptSet, modelType, 00077 featureName, mConcepts[0]); 00078 mHelper = MakeHelper(options.GetBool("precomputed"), 00079 options.GetBool("fik")); 00080 mHelper->Initialise(mAnnoSet, mModelLoc); 00081 mModelLoc.SetConcept("dummy"); 00082 mKernelDataOnly = options.GetBool("kernelDataOnly"); 00083 }
Here is the call graph for this function:
|