Medical Imaging Interaction Toolkit  2016.11.0
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,
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 
17 #ifndef MITKUSImageLoggingFiler_H_HEADER_INCLUDED_
18 #define MITKUSImageLoggingFiler_H_HEADER_INCLUDED_
19 
20 // MITK
21 #include <MitkUSExports.h>
22 #include <mitkImageToImageFilter.h>
23 #include <mitkRealTimeClock.h>
24 
25 
26 namespace mitk {
36  class MITKUS_EXPORT USImageLoggingFilter : public mitk::ImageToImageFilter
37  {
38  public:
39 
41 
42  itkNewMacro(USImageLoggingFilter);
43 
45  virtual void GenerateData() override;
46 
51  void AddMessageToCurrentImage(std::string message);
52 
62  void SaveImages(std::string path, std::vector<std::string>& imageFilenames, std::string& csvFileName);
63 
71  void SaveImages(std::string path);
72 
77  bool SetImageFilesExtension(std::string extension);
78 
79 
80  protected:
82  virtual ~USImageLoggingFilter();
83  typedef std::vector<mitk::Image::Pointer> ImageCollection;
85 
86  //members for logging
87  ImageCollection m_LoggedImages;
88  std::map<int, std::string> m_LoggedMessages;
89  std::vector<double> m_LoggedMITKSystemTimes;
90  std::string m_ImageExtension;
91 
92  };
93 } // namespace mitk
94 #endif /* MITKUSImageSource_H_HEADER_INCLUDED_ */
std::vector< mitk::Image::Pointer > ImageCollection
itk::SmartPointer< Self > Pointer
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:44
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...
mitk::RealTimeClock::Pointer m_SystemTimeClock
system time clock for system time tag