MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkToFImageRecorderFilter.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#ifndef mitkToFImageRecorderFilter_h
13#define mitkToFImageRecorderFilter_h
14
15#include <mitkImageToImageFilter.h>
16#include <MitkToFHardwareExports.h>
17
18#include <mitkToFImageWriter.h>
19
20namespace mitk
21{
28 class MITKTOFHARDWARE_EXPORT ToFImageRecorderFilter : public ImageToImageFilter
29 {
30 public:
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
Filter that allows recording of processed ToF images Internally the ToFImageWriter is used for writin...
ToFImageWriter::Pointer m_ToFImageWriter
image writer used for streaming input data to file
bool m_RecordingStarted
flag indicating if filter is currently recording
mitkClassMacro(ToFImageRecorderFilter, ImageToImageFilter)
IGT Exceptions.