Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 mitkUSImageLoggingFilter_h
14 #define mitkUSImageLoggingFilter_h
15 
16 // MITK
17 #include <MitkUSExports.h>
18 #include <mitkImageToImageFilter.h>
19 #include <mitkRealTimeClock.h>
20 
21 
22 namespace mitk {
32  class MITKUS_EXPORT USImageLoggingFilter : public mitk::ImageToImageFilter
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
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
mitkImageToImageFilter.h
mitk::USImageLoggingFilter::m_LoggedMITKSystemTimes
std::vector< double > m_LoggedMITKSystemTimes
Logged system times for every logged image.
Definition: mitkUSImageLoggingFilter.h:85
mitkRealTimeClock.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::USImageLoggingFilter::ImageCollection
std::vector< mitk::Image::Pointer > ImageCollection
Definition: mitkUSImageLoggingFilter.h:79
mitk::USImageLoggingFilter::m_LoggedImages
ImageCollection m_LoggedImages
An image collection for every input. The string identifies the input.
Definition: mitkUSImageLoggingFilter.h:83
mitk::USImageLoggingFilter
Definition: mitkUSImageLoggingFilter.h:32
mitk::USImageLoggingFilter::m_LoggedMessages
std::map< int, std::string > m_LoggedMessages
(Optional) messages for every logged image
Definition: mitkUSImageLoggingFilter.h:84
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::USImageLoggingFilter::m_SystemTimeClock
mitk::RealTimeClock::Pointer m_SystemTimeClock
system time clock for system time tag
Definition: mitkUSImageLoggingFilter.h:80
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition: mitkImageToImageFilter.h:25
mitk::USImageLoggingFilter::m_ImageExtension
std::string m_ImageExtension
stores the image extension, default is ".nrrd"
Definition: mitkUSImageLoggingFilter.h:86