X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Lib%2FPrePostProcessing%2FitkSTMS_TemporalSetToImageSequence.txx;fp=Lib%2FPrePostProcessing%2FitkSTMS_TemporalSetToImageSequence.txx;h=2d5131821dafa43f4ff2b394f9b137b0ed8f0e49;hb=eb863a819b64b16474944e84a8724a7d6c332cac;hp=f5a00e9c08706091ca710fac3b5cf62e6a3c8c0d;hpb=06d646fa83dc002ad793814d37004ad72f126ca7;p=STMS.git diff --git a/Lib/PrePostProcessing/itkSTMS_TemporalSetToImageSequence.txx b/Lib/PrePostProcessing/itkSTMS_TemporalSetToImageSequence.txx index f5a00e9..2d51318 100755 --- a/Lib/PrePostProcessing/itkSTMS_TemporalSetToImageSequence.txx +++ b/Lib/PrePostProcessing/itkSTMS_TemporalSetToImageSequence.txx @@ -198,7 +198,7 @@ itkSTMS_TemporalSetToImageSequence< ImageType, ClassImageType > template < class ImageType, class ClassImageType> void itkSTMS_TemporalSetToImageSequence< ImageType, ClassImageType > -::GenerateCSVFile() +::GenerateCSVFile(const std::string &delimiter) { std::string CSVFilename = expDescription->experimentPath+expDescription->outputFolder+ expDescription->outputCommonRoot+ @@ -213,9 +213,9 @@ itkSTMS_TemporalSetToImageSequence< ImageType, ClassImageType > for(unsigned int j=0 ; jsize() ; ++j) { - ofs << j+1 <<", " << std::count (classSet->begin(), classSet->end(), j+1); + ofs << j+1 << delimiter << std::count (classSet->begin(), classSet->end(), j+1); for( unsigned int i=1 ; i<=stmsParameters->numTimePoints - stmsParameters->startTimePoint + 1; ++i ) - ofs << ", " << rangeSet->at(j)[i-1]*stmsParameters->rScale ; + ofs << delimiter << rangeSet->at(j)[i-1]*stmsParameters->rScale ; ofs << std::endl; }