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+
for(unsigned int j=0 ; j<rangeSet->size() ; ++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;
}