MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSImageLoggingFilter.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
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
22namespace mitk {
32 class MITKUS_EXPORT USImageLoggingFilter : public mitk::ImageToImageFilter
33 {
34 public:
35
36 mitkClassMacro(USImageLoggingFilter, mitk::ImageToImageFilter);
37
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
std::vector< mitk::Image::Pointer > ImageCollection
itkNewMacro(USImageLoggingFilter)
ImageCollection m_LoggedImages
An image collection for every input. The string identifies the input.
std::vector< double > m_LoggedMITKSystemTimes
Logged system times for every logged image.
std::string m_ImageExtension
stores the image extension, default is ".nrrd"
std::map< int, std::string > m_LoggedMessages
(Optional) messages for every logged image
mitk::RealTimeClock::Pointer m_SystemTimeClock
system time clock for system time tag
mitkClassMacro(USImageLoggingFilter, mitk::ImageToImageFilter)
IGT Exceptions.