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

void Impala::Core::Feature::PointDescriptorTable::ExportToFile ( String  filename,
int  mStripBorder,
String  mOutputFormat 
) [inline]

Definition at line 152 of file PointDescriptorTable.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get3(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get4(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get5(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn6(), Impala::Core::Matrix::MatE(), Impala::Core::Matrix::MatNrCol(), Impala::Core::Table::Table::Size(), Impala::Core::Feature::WriteBINDESC1ToBuffer(), and Impala::Core::Feature::WriteKOEN1ToBuffer().

Referenced by Impala::Core::Feature::InterestPointFeature::FindInterestPoints().

00153     {
00154         using namespace Impala::Core::Matrix;
00155         
00156         Util::IOBuffer* buffer = new Util::IOBufferFile(filename, false, false);
00157         Mat* points = MatCreate<Mat>(Size(), 5);
00158         for(int i = 0; i < Size(); i++)
00159         {
00160             // shift by 1 for consistency with the public file format (which uses 1..n instead of 0..n-1)
00161             // make coordinates equal to the original image, without the borders removed
00162             *MatE(points, i, 0) = Get1(i) + 1 + mStripBorder;
00163             *MatE(points, i, 1) = Get2(i) + 1 + mStripBorder;
00164             *MatE(points, i, 2) = Get3(i);
00165             *MatE(points, i, 3) = Get4(i);
00166             *MatE(points, i, 4) = Get5(i);
00167         }
00168         Mat* descriptorWrapper = MatCreate<Mat>(Size(), 
00169                    MatNrCol(GetColumn6()->GetStorage()),
00170                    MatE(GetColumn6()->GetStorage(), 0, 0), true);
00171         if((mOutputFormat == "bindesc1") || (mOutputFormat == "binary"))
00172         {
00173             WriteBINDESC1ToBuffer(buffer, points, descriptorWrapper, "CIRCLE  ");
00174         }
00175         else
00176         {
00177             WriteKOEN1ToBuffer(buffer, points, descriptorWrapper, "CIRCLE");
00178         }
00179         delete descriptorWrapper;
00180         delete points;
00181         delete buffer;
00182     }

Here is the call graph for this function:


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