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

void Impala::Sandbox::Koen::WritePointListToFile ( String  filename,
InterestPointList &  outputPointList,
bool  writeDescriptors,
int  borderOffset,
String  format,
bool  appendToExisting = false 
)

Definition at line 159 of file InterestPointListIO.h.

References WriteRegionsToBuffer(), and WriteRegionsToStreamFormatKoen().

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

00160 {
00161     if((format == "bindesc1") || (format == "binary"))
00162     {
00163         Util::IOBuffer* buffer = new Util::IOBufferFile(filename, false, false);
00164         WriteRegionsToBuffer(buffer, outputPointList, writeDescriptors, borderOffset);
00165         delete buffer;
00166     }
00167     else
00168     {
00169         std::ios::openmode flags = std::ios::ate | std::ios::out | std::ios::in;
00170         if(!appendToExisting)
00171         {
00172             flags = std::ios::out;
00173         }
00174         std::ofstream fs(filename.c_str(), flags);
00175         WriteRegionsToStreamFormatKoen(fs, outputPointList, writeDescriptors, borderOffset);
00176         fs.close();
00177     }
00178 }

Here is the call graph for this function:


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