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

void Impala::Core::Feature::InterestPointFeature::ProjectForest ( Mat descriptors,
int  imageWidth,
int  imageHeight,
std::vector< int > &  X,
std::vector< int > &  Y,
std::vector< int > &  regionCounts 
) [inline, private]

Definition at line 718 of file InterestPointFeature.h.

References AddToPyramids(), Impala::Core::Feature::DeleteForest(), Impala::Core::Feature::GetCodebookLength(), ILOG_DEBUG, Impala::Core::Matrix::MatNrCol(), Impala::Core::Matrix::MatNrRow(), mCodebook, mLastCodebookVectors, Impala::Core::Feature::ReadRandomForest(), and Impala::Timer::SplitTimeStr().

Referenced by ProjectOntoCodebook().

00721     {
00722         using namespace Matrix;
00723         // make trees from the table
00724         ILOG_DEBUG("creating random forest from feature table");
00725         RandomForest forest = ReadRandomForest(mCodebook);
00726         ILOG_DEBUG("codewords: "<<GetCodebookLength(mCodebook)<<", feattable size: "<<
00727                   mLastCodebookVectors[0]->Size() <<", desc count"<<
00728                   MatNrRow(descriptors) <<", desc length: "<< MatNrCol(descriptors));
00729         Timer timerProjection;
00730         for(int vj = 0; vj < MatNrRow(descriptors); vj++)
00731         {
00732             for(int i=0; i<forest.size(); ++i)
00733             {
00734                 RandomTree* tree = forest[i];
00735                 ILOG_DEBUG("getting codeword");
00736                 int codeword = tree->GetCodeWord(Vector::VectorTem<Real64>(MatNrCol(descriptors), descriptors->CPB(0, vj), true));
00737                 ILOG_DEBUG("got codeword");
00738                 AddToPyramids(codeword, X[vj], Y[vj], imageWidth, imageHeight,
00739                               regionCounts);
00740             }
00741         }
00742         DeleteForest(forest);
00743         ILOG_DEBUG("Codebook projection (forest) took: " <<
00744                    timerProjection.SplitTimeStr());
00745     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:09:59 2010 for ImpalaSrc by  doxygen 1.5.1