Definition at line 187 of file DataFactory.h. References Impala::Core::Database::RawDataSet::GetFilePathAnnotation(), Impala::Core::Table::AnnotationTable::GetNrNegative(), Impala::Core::Table::AnnotationTable::GetNrPositive(), mConceptSet, mDataSet, mDb, mQuidClass, Impala::Core::Table::Read(), and Impala::Core::Table::Table::Size(). Referenced by Impala::Application::CrossValidate(), Impala::Core::Training::TesterIOHelper::ReadAnnotation(), SelectQuids(), and Impala::Application::TrainModel(). 00188 { 00189 // load annotations 00190 String filename = mDataSet->GetFilePathAnnotation 00191 (mQuidClass, mConceptSet, concept + ".tab", false, false); 00192 if (filename.empty()) 00193 { 00194 ILOG_ERROR_ONCE("could not find the annotation of " << concept); 00195 return 0; 00196 } 00197 Table::AnnotationTable* annotation = new Table::AnnotationTable; 00198 Read(annotation, filename, mDb); 00199 ILOG_DEBUG_ONCE("Annotations size: " << annotation->Size() ); 00200 ILOG_DEBUG_ONCE("nr pos = "<< annotation->GetNrPositive() << 00201 "nr neg = "<< annotation->GetNrNegative()); 00203 /* 00204 int maxV = mProperties->GetInt("maxVideoId"); 00205 mAnnotation->SelectQuidObjectMaxId(maxV); 00206 int maxP = mProperties->GetInt("maxPosPerVideo"); 00207 mAnnotation->SelectQuidObjectMaxPositive(maxP); 00208 int maxN = mProperties->GetInt("maxNegPerVideo"); 00209 mAnnotation->SelectQuidObjectMaxNegative(maxN); 00210 double pos = mAnnotation->GetNrPositive(); 00211 double neg = mAnnotation->GetNrNegative(); 00212 ILOG_DEBUG_ONCE(pos << " positive and " << neg << " negative annotations"); 00213 ILOG_DEBUG_ONCE("total size of annotable = " << mAnnotation->Size()); 00214 */ 00215 return annotation; 00216 }
Here is the call graph for this function:
|