MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkToFImageCsvWriter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12#ifndef mitkToFImageCsvWriter_h
13#define mitkToFImageCsvWriter_h
14
15#include "mitkToFImageWriter.h"
16#include <MitkToFHardwareExports.h>
17
18namespace mitk
19{
29 class MITKTOFHARDWARE_EXPORT ToFImageCsvWriter : public ToFImageWriter
30 {
31 public:
39 ~ToFImageCsvWriter() override;
40
42
44
49 void Open() override;
53 void Close() override;
61 void Add(float* distanceFloatData, float* amplitudeFloatData, float* intensityFloatData, unsigned char* rgbData=nullptr) override;
62
63 protected:
64
65 Image::Pointer m_MitkImage;
69
70 private:
75 void OpenCsvFile(FILE** outfile, std::string outfileName);
80 void CloseCsvFile(FILE* outfile);
85 void WriteCsvFile(FILE* outfile, float* floatData);
86 };
87} //END mitk namespace
88#endif
CSV writer class for ToF image data.
itkCloneMacro(Self) void Open() override
Checks for file extensions and opens the output files.
Image::Pointer m_MitkImage
mitk image used for pic header creation
FILE * m_IntensityOutfile
file for intensity image
FILE * m_AmplitudeOutfile
file for amplitude image
mitkClassMacro(ToFImageCsvWriter, ToFImageWriter)
FILE * m_DistanceOutfile
file for distance image
Writer class for ToF images.
void OpenCsvFile(FILE **outfile, std::string outfileName)
void CloseCsvFile(FILE *outfile)
IGT Exceptions.