Commit c5757b5f authored by Julien Malik's avatar Julien Malik

BUG: fix tmpdir set and out contains full path : actually use the current dir...

BUG: fix tmpdir set and out contains full path : actually use the current dir and not the dir of out file
parent b08dc362
......@@ -89,10 +89,10 @@ private:
bool m_TmpDirCleanup;
std::string CreateFileName(unsigned int row, unsigned int column, std::string label)
{;
// TODO: Beware of file extensions with more than 3 chars
{
std::string outfname = GetParameterString("out");
std::string tilesname = outfname.substr(0,outfname.size() - itksys::SystemTools::GetFilenameExtension(outfname.c_str()).size());
std::string tilesname = itksys::SystemTools::GetFilenameWithoutExtension(outfname.c_str());
std::stringstream tileOut;
tileOut<<tilesname<<"_"<<row<<"_"<<column<<"_"<<label<<".tif";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment