#include <itksys/SystemTools.hxx>
+#ifdef _WIN32
+ #define _USE_MATH_DEFINES
+ #include <cmath>
+ const double M_PI = std::acos(-1.0);
+#endif
+
// clitk include
#include "clitkCommon.h"
std::vector<std::string> pathComponents;
itksys::SystemTools::SplitPath(filename.c_str(), pathComponents);
std::string fileName = pathComponents.back();
- dirname.push_back(path);
+ if (path != "")
+ dirname.push_back(path);
dirname.push_back(fileName);
return( dirname );
} ////