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

template<class SrcArrayT>
PointDescriptorTable* Impala::Core::Feature::InterestPointFeature::DenseSamplingDetector ( SrcArrayT *  input,
int  spacing 
) [inline, private]

Definition at line 981 of file InterestPointFeature.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), and mDenseSamplingScales.

Referenced by ApplyDetector().

00982     {
00983         PointDescriptorTable* output = new PointDescriptorTable();
00984         int halfspacing = spacing / 2;
00985         int w = input->CW();
00986         int h = input->CH();
00987         int i = 0;
00988         for(int y = spacing; y < h - spacing; y += spacing)
00989         {
00990             int x = spacing;
00991             if(i % 2 == 0)
00992             {
00993                 x += halfspacing;
00994             }
00995             for(; x < w - spacing; x += spacing)
00996             {
00997                 for(int q = 0; q < mDenseSamplingScales.size(); q++)
00998                 {
00999                     //Real64 scale = sqrt(Real64(spacing * spacing + spacing *
01000                     //spacing));
01005                     //scale = scale / 4;
01006                     output->Add(x, y, mDenseSamplingScales[q], 0, 0);
01007                 }
01008             }
01009             i += 1;
01010         }
01011         return output;
01012     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:10:02 2010 for ImpalaSrc by  doxygen 1.5.1