1 | initial version |
don't worry, that's ugly but not a real problem. there's nothing wrong with your code.
cout is just using different iomanipulation flags to show the numbers from the FileStorage.
SURF (and SIFT) descriptors are indeed float type, so the FileStorage adds all those dots.
#include <iomanip>
int main()
{
float f = 1.0;
std::cout << std::showpoint << std::setprecision(1) << f << " " << std::noshowpoint << f << std::endl;
return 1;
}
1. 1
2 | No.2 Revision |
don't worry, that's ugly but not a real problem. there's nothing wrong with your code.
cout is and FileStorage are just using different iomanipulation flags to show the numbers from the FileStorage..
SURF (and SIFT) descriptors are indeed float type, so the FileStorage adds all those dots.
#include <iomanip>
int main()
{
float f = 1.0;
std::cout << std::showpoint << std::setprecision(1) << f << " " << std::noshowpoint << f << std::endl;
return 1;
}
1. 1