Medical Imaging Interaction Toolkit  2018.4.99-07c45cb1
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef __mitkToFImageCsvWriter_h
13 #define __mitkToFImageCsvWriter_h
14 
15 #include "mitkToFImageWriter.h"
16 #include <MitkToFHardwareExports.h>
17 
18 namespace mitk
19 {
30  {
31  public:
39  ~ToFImageCsvWriter() override;
40 
42 
43  itkFactorylessNewMacro(Self);
44 
45  itkCloneMacro(Self)
49  void Open() override;
53  void Close() override;
60  void Add(float* distanceFloatData, float* amplitudeFloatData, float* intensityFloatData, unsigned char* rgbData=nullptr) override;
61 
62  protected:
63 
68 
69  private:
74  void OpenCsvFile(FILE** outfile, std::string outfileName);
79  void CloseCsvFile(FILE* outfile);
84  void WriteCsvFile(FILE* outfile, float* floatData);
85  };
86 } //END mitk namespace
87 #endif // __mitkToFImageCsvWriter_h
#define MITKTOFHARDWARE_EXPORT
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:40
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