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

template<class FType>
int Impala::Core::Feature::VirtualFeatureTable::GetAlignedVectors ( int  start,
int  nr,
FType *  buffer,
int  outputPitch 
) [inline]

Definition at line 77 of file VirtualFeatureTable.h.

References GetVector(), GetVectorLength(), ILOG_ERROR, Impala::Min(), and Size().

00078     {
00079         if (start >= Size())
00080         {
00081             ILOG_ERROR("[GetAlignedVectors] Start beyond total vector count");
00082             return 0;
00083         }
00084         int linesRead = Min(nr, Size() - start);
00085         for (int i=0 ; i<linesRead ; i++)
00086         {
00087             FType* ptr = buffer + i * outputPitch;
00088             GetVector(start+i, ptr, GetVectorLength());
00089             for (int j=GetVectorLength() ; j<outputPitch ; j++)
00090                 ptr[j] = 0.0;
00091         }
00092         // pad additional rows with zeros, if they were not read
00093         // because zero padding above is only done in unused area on the right
00094         for (int i=linesRead ; i<nr ; i++)
00095         {
00096             FType* ptr = buffer + i * outputPitch;
00097             for (int j=0 ; j<outputPitch ; j++)
00098                 ptr[j] = 0.0;
00099         }
00100         return linesRead;
00101     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:19:31 2011 for ImpalaSrc by  doxygen 1.5.1