Skip to content
Snippets Groups Projects
Commit a75ef1f2 authored by Mathieu Deltorre's avatar Mathieu Deltorre
Browse files

*ajout setprecision pour ecrire le descripteur SIFT

parent f5dd3fde
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,15 @@ int otbImageToSIFTKeyPointSetFilterOutputAscii(int argc, char * argv[])
outfile << "Number of SIFT key points: " << filter->GetOutput()->GetNumberOfPoints() << std::endl;
while( pIt!=filter->GetOutput()->GetPoints()->End() )
{
outfile << pIt.Value() << " " << pDataIt.Value() << std::endl;
outfile << pIt.Value() << "[";
unsigned int lIterDesc=0;
while (lIterDesc < pDataIt.Value().Size())
{
outfile << std::setprecision(3) << pDataIt.Value()[lIterDesc] << " ";
lIterDesc++;
}
outfile << "]" << std::endl;
++pIt;
++pDataIt;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment