Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
Medical Imaging Interaction Toolkit
mitkBeamformingFilter.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 MITK_PHOTOACOUSTICS_BEAMFORMING_FILTER
14 #define MITK_PHOTOACOUSTICS_BEAMFORMING_FILTER
15 
16 #include "mitkImageToImageFilter.h"
17 #include <functional>
20 #include "mitkBeamformingUtils.h"
22 
23 namespace mitk {
33  {
34  public:
36 
37  mitkNewMacro1Param(Self, mitk::BeamformingSettings::Pointer);
38  itkCloneMacro(Self);
39 
45  void SetProgressHandle(std::function<void(int, std::string)> progressHandle);
46 
47  protected:
48  BeamformingFilter(mitk::BeamformingSettings::Pointer settings);
49 
50  ~BeamformingFilter() override;
51 
52  void GenerateInputRequestedRegion() override;
53 
54  void GenerateOutputInformation() override;
55 
56  void GenerateData() override;
57 
58  //##Description
59  //## @brief Time when Header was last initialized
61 
64  std::function<void(int, std::string)> m_ProgressHandle;
65 
66  float* m_OutputData;
67  float* m_InputData;
69  unsigned short* m_MinMaxLines;
70 
73  BeamformingSettings::Pointer m_Conf;
74 
79 
82  mitk::PhotoacousticOCLBeamformingFilter::Pointer m_BeamformingOclFilter;
83  };
84 } // namespace mitk
85 
86 #endif //MITK_PHOTOACOUSTICS_BEAMFORMING_FILTER
std::function< void(int, std::string)> m_ProgressHandle
The std::function<void(int, std::string)>, through which progress of the currently updating filter is...
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
itk::TimeStamp m_TimeOfHeaderInitialization
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKPHOTOACOUSTICSALGORITHMS_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
BeamformingSettings::Pointer m_Conf
Current configuration set.
Superclass of all classes having one or more Images as input and generating Images as output...
mitk::PhotoacousticOCLBeamformingFilter::Pointer m_BeamformingOclFilter
Pointer to the GPU beamforming filter class; for performance reasons the filter is initialized within...
Class implementing an mitk::ImageToImageFilter for beamforming on both CPU and GPU.