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

void Impala::Samples::ActiveLearnEngine::AddRandomNegatives ( int  number  )  [inline]

Definition at line 125 of file ActiveLearnEngine.h.

References AddNegative(), Impala::Core::Trec::ThreadSet::GetKeyframes(), ILOG_DEBUG, and mThreadSet.

Referenced by SubmitRequest().

00126     {
00127         ILOG_DEBUG("adding " << number << " random examples as negative...");
00128         for (int i=0; i<number; i++)
00129         {
00130             double rnd = ( (1.0 * rand()) / RAND_MAX);
00131             int randomkeyframe = rnd * (mThreadSet->GetKeyframes()->GetNrKeyframes()-1);
00132             Quid randomkeyquid = mThreadSet->GetKeyframes()->GetQuidFrame(randomkeyframe);
00133             AddNegative(randomkeyquid);
00134         }
00135     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:37:58 2010 for ImpalaSrc by  doxygen 1.5.1