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

void Impala::Sandbox::Koen::ReadPointListFromFile ( String  filename,
InterestPointList &  outputPointList,
bool  readDescriptors,
int  borderOffset 
)

Definition at line 369 of file InterestPointListIO.h.

References Impala::Util::IOBuffer::Read(), ReadPointListFromBuffer(), ReadRegionsFromStreamFormatKoen(), and Impala::Util::IOBuffer::Seek().

Referenced by Impala::Core::Feature::PointDescriptorTable::ImportFromFile().

00371 {
00372     Util::IOBuffer* buffer = new Util::IOBufferFile(filename, true, false);
00373     char buf[9];
00374     for (int i=0 ; i<9 ; i++)
00375         buf[i] = 0;
00376     buffer->Read(buf, 8);
00377     
00378     if(String(buf) == "BINDESC1")
00379     {
00380         // Format BINDESC1
00381         buffer->Seek(0, SEEK_SET);
00382         ReadPointListFromBuffer(buffer, outputPointList, readDescriptors, 
00383                                 borderOffset);
00384         delete buffer;
00385     }
00386     else
00387     {
00388         delete buffer;
00389         
00390         // Format KOEN1
00391         std::ifstream fs(filename.c_str());
00392         ReadRegionsFromStreamFormatKoen
00393             (fs, outputPointList, false, borderOffset);
00394         fs.close();
00395     }
00396 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:38:57 2010 for ImpalaSrc by  doxygen 1.5.1