Added Stereo and StereoDense base classes (with Stereo->StereoOpticalFlow and StereoDense->StereoBM) to handle easily stereo parameters. Added stereoEval tool to test Stereo/OpticalFlow=false or true. Added StereoBM parameters. Refactoring of the Preferences dialog (tree view order and some titles)

This commit is contained in:
matlabbe
2015-12-11 17:44:15 -05:00
parent 818eda005f
commit 9cc94ce1e6
44 changed files with 6866 additions and 4311 deletions
@@ -117,6 +117,12 @@ std::string UTILITE_EXP uNumber2Str(float number);
*/
std::string UTILITE_EXP uNumber2Str(double number);
/**
* Convert a string to an integer.
* @param the string
* @return the number
*/
int UTILITE_EXP uStr2Int(const std::string & str);
/**
* Convert a string to a float independent of the locale (comma/dot).
+5
View File
@@ -113,6 +113,11 @@ std::string uNumber2Str(double number)
return s.str();
}
int uStr2Int(const std::string & str)
{
return atoi(str.c_str());
}
float uStr2Float(const std::string & str)
{
float value = 0.0f;