Medical Imaging Interaction Toolkit  2018.4.99-bd7b41ba
Medical Imaging Interaction Toolkit
mitkUSImageLoggingFilter.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 
13 #ifndef MITKUSImageLoggingFiler_H_HEADER_INCLUDED_
14 #define MITKUSImageLoggingFiler_H_HEADER_INCLUDED_
15 
16 // MITK
17 #include <MitkUSExports.h>
18 #include <mitkImageToImageFilter.h>
19 #include <mitkRealTimeClock.h>
20 
21 
22 namespace mitk {
33  {
34  public:
35 
37 
38  itkNewMacro(USImageLoggingFilter);
39 
41  void GenerateData() override;
42 
47  void AddMessageToCurrentImage(std::string message);
48 
58  void SaveImages(std::string path, std::vector<std::string>& imageFilenames, std::string& csvFileName);
59 
67  void SaveImages(std::string path);
68 
73  bool SetImageFilesExtension(std::string extension);
74 
75 
76  protected:
78  ~USImageLoggingFilter() override;
79  typedef std::vector<mitk::Image::Pointer> ImageCollection;
80  mitk::RealTimeClock::Pointer m_SystemTimeClock;
81 
82  //members for logging
83  ImageCollection m_LoggedImages;
84  std::map<int, std::string> m_LoggedMessages;
85  std::vector<double> m_LoggedMITKSystemTimes;
86  std::string m_ImageExtension;
87 
88  };
89 } // namespace mitk
90 #endif /* MITKUSImageSource_H_HEADER_INCLUDED_ */
std::vector< mitk::Image::Pointer > ImageCollection
DataCollection - Class to facilitate loading/accessing structured data.
std::string m_ImageExtension
stores the image extension, default is ".nrrd"
ImageCollection m_LoggedImages
An image collection for every input. The string identifies the input.
std::map< int, std::string > m_LoggedMessages
(Optional) messages for every logged image
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
std::vector< double > m_LoggedMITKSystemTimes
Logged system times for every logged image.
Superclass of all classes having one or more Images as input and generating Images as output...
#define MITKUS_EXPORT
Definition: MitkUSExports.h:15
mitk::RealTimeClock::Pointer m_SystemTimeClock
system time clock for system time tag