#include <string>
#include <vector>
+#include <algorithm>
#include <math.h>
#include "itkImage.h"
namespace itkSTMS
{
- template < class ImageType, class ClassImageType >
+ template < class ImageType, class ClassImageType, class OutputImageType=ImageType>
class itkSTMS_TemporalSetToImageSequence
{
public:
// Reader and writer typedefs
typedef itk::ImageFileReader< ImageType > ReaderType;
typedef typename ReaderType::Pointer ReaderPointer;
- typedef itk::ImageFileWriter< ImageType > WriterType;
+ typedef itk::ImageFileWriter< OutputImageType > WriterType;
typedef typename WriterType::Pointer WriterPointer;
typedef itk::ImageFileWriter< ClassImageType > ClassWriterType;
typedef typename ClassWriterType::Pointer ClassWriterPointer;
void GenerateImageSequence();
+ //! To generate CSV File from all classes. The file contains the class ID, the number of pixels of this class and then all filtered values along time.
+ //! You can pass a delimiter (ie a record separator) to this function.
+ void GenerateCSVFile(const std::string &delimiter = std::string(", "));
+
private:
// Attributes
itkSTMS::ParserOutputType* expDescription;