Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkToFImageRecorderFilter.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 #ifndef mitkToFImageRecorderFilter_h
13 #define mitkToFImageRecorderFilter_h
14 
15 #include <mitkImageToImageFilter.h>
16 #include <MitkToFHardwareExports.h>
17 
18 #include <mitkToFImageWriter.h>
19 
20 namespace mitk
21 {
28  class MITKTOFHARDWARE_EXPORT ToFImageRecorderFilter : public ImageToImageFilter
29  {
30  public:
32  itkFactorylessNewMacro(Self);
33  itkCloneMacro(Self);
34 
40  void SetFileName(std::string fileName);
45  void SetImageType(ToFImageWriter::ToFImageType tofImageType);
50  ToFImageWriter::Pointer GetToFImageWriter();
55  void SetToFImageWriter(ToFImageWriter::Pointer tofImageWriter);
59  void StartRecording();
63  void StopRecording();
64 
65  using itk::ProcessObject::SetInput;
66 
71  void SetInput( const InputImageType* input) override;
77  void SetInput(unsigned int idx, const InputImageType* input) override;
81  Image* GetInput();
85  Image* GetInput(unsigned int idx);
86 
87  protected:
95  ~ToFImageRecorderFilter() override;
100  void GenerateData() override;
108  void CreateOutputsForAllInputs();
109 
111  ToFImageWriter::Pointer m_ToFImageWriter;
112  std::string m_FileExtension;
113  };
114 } //END mitk namespace
115 #endif
mitk::ToFImageWriter::ToFImageType
ToFImageType
Definition: mitkToFImageWriter.h:76
mitkImageToImageFilter.h
mitk::ToFImageRecorderFilter
Filter that allows recording of processed ToF images Internally the ToFImageWriter is used for writin...
Definition: mitkToFImageRecorderFilter.h:28
mitk::ToFImageRecorderFilter::m_FileExtension
std::string m_FileExtension
Definition: mitkToFImageRecorderFilter.h:112
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk::ToFImageRecorderFilter::m_RecordingStarted
bool m_RecordingStarted
flag indicating if filter is currently recording
Definition: mitkToFImageRecorderFilter.h:110
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitkToFImageWriter.h
mitk::ToFImageRecorderFilter::m_ToFImageWriter
ToFImageWriter::Pointer m_ToFImageWriter
image writer used for streaming input data to file
Definition: mitkToFImageRecorderFilter.h:111
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition: mitkImageToImageFilter.h:25