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

void Impala::Sandbox::Koen::ReadRegionsFromStreamFormatKoen ( std::istream &  fs,
InterestPointList &  outputPointList,
bool  readDescriptors,
int  borderOffset 
)

Definition at line 250 of file InterestPointListIO.h.

References ILOG_VAR, and ReadRegionsFromStreamFormatKoen().

00251 {
00252     ILOG_VAR(Sandbox.koen.ReadRegionsFromStreamFormatKoen);
00253     //note: this function will probably not work on Windows due to line ending problems
00254 
00255     fs.seekg(0, std::ios_base::end);
00256     int fileSize = fs.tellg();
00257     fs.seekg(0, std::ios_base::beg);
00258     char* buffer = new char[fileSize];
00259     // 0 character should never be read from a file, so we should get the whole file
00260     fs.get(buffer, fileSize, '\0');
00261 
00262     String content(buffer);
00263     ReadRegionsFromStreamFormatKoen(content, outputPointList, readDescriptors, borderOffset);
00264 }

Here is the call graph for this function:


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