Definition at line 986 of file InterestPointFeature.h. References AddToPyramids(), Impala::Core::Feature::DeleteForest(), ILOG_DEBUG, Impala::Core::Matrix::MatNrCol(), Impala::Core::Matrix::MatNrRow(), mCodebook, Impala::Core::Feature::ReadRandomForest(), and Impala::Timer::SplitTimeStr(). Referenced by ProjectOntoCodebook(). 00989 { 00990 using namespace Matrix; 00991 // make trees from the table 00992 ILOG_DEBUG("creating random forest from feature table"); 00993 RandomForest forest = ReadRandomForest(mCodebook); 00994 //ILOG_DEBUG("codewords: "<<GetCodebookLength(mCodebook)<<", feattable size: "<< 00995 // mLastCodebookVectors[0]->Size() <<", desc count"<< 00996 // MatNrRow(descriptors) <<", desc length: "<< MatNrCol(descriptors)); 00997 Timer timerProjection; 00998 for(int vj = 0; vj < MatNrRow(descriptors); vj++) 00999 { 01000 for(int i=0; i<forest.size(); ++i) 01001 { 01002 RandomTree* tree = forest[i]; 01003 ILOG_DEBUG("getting codeword"); 01004 int codeword = tree->GetCodeWord(Vector::VectorTem<Real64>(MatNrCol(descriptors), descriptors->CPB(0, vj), true)); 01005 ILOG_DEBUG("got codeword"); 01006 AddToPyramids(codebookVectors, codeword, X[vj], Y[vj], 01007 imageWidth, imageHeight, regionCounts); 01008 } 01009 } 01010 DeleteForest(forest); 01011 ILOG_DEBUG("Codebook projection (forest) took: " << 01012 timerProjection.SplitTimeStr()); 01013 }
Here is the call graph for this function:
|