Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFImageCsvWriter.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef __mitkToFImageCsvWriter_h
17 #define __mitkToFImageCsvWriter_h
18 
19 #include "mitkToFImageWriter.h"
20 #include <MitkToFHardwareExports.h>
21 
22 namespace mitk
23 {
33  class MITKTOFHARDWARE_EXPORT ToFImageCsvWriter : public ToFImageWriter
34  {
35  public:
44 
46 
47  itkFactorylessNewMacro(Self)
48  itkCloneMacro(Self)
52  void Open() override;
56  void Close() override;
63  void Add(float* distanceFloatData, float* amplitudeFloatData, float* intensityFloatData, unsigned char* rgbData=0) override;
64 
65  protected:
66 
71 
72  private:
77  void OpenCsvFile(FILE** outfile, std::string outfileName);
82  void CloseCsvFile(FILE* outfile);
87  void WriteCsvFile(FILE* outfile, float* floatData);
88  };
89 } //END mitk namespace
90 #endif // __mitkToFImageCsvWriter_h
DataCollection - Class to facilitate loading/accessing structured data.
FILE * m_IntensityOutfile
file for intensity image
Writer class for ToF images.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
FILE * m_DistanceOutfile
file for distance image
CSV writer class for ToF image data.
Image::Pointer m_MitkImage
mitk image used for pic header creation
FILE * m_AmplitudeOutfile
file for amplitude image