|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Class implementing an mitk::ImageToImageFilter for beamforming on both CPU and GPU. More...
#include <mitkBeamformingFilter.h>


Public Member Functions | |
| mitkClassMacro (BeamformingFilter, ImageToImageFilter) | |
| mitkNewMacro1Param (Self, mitk::BeamformingSettings::Pointer) | |
| Pointer | Clone () const |
| void | SetProgressHandle (std::function< void(int, std::string)> progressHandle) |
| Sets a callback for progress checking. More... | |
Public Member Functions inherited from mitk::ImageToImageFilter | |
| virtual std::vector< std::string > | GetClassHierarchy () const override |
| virtual const char * | GetClassName () const |
| Pointer | Clone () const |
| virtual void | SetInput (const InputImageType *image) |
| virtual void | SetInput (unsigned int, const InputImageType *image) |
| InputImageType * | GetInput (void) |
| InputImageType * | GetInput (unsigned int idx) |
| const InputImageType * | GetInput (void) const |
| const InputImageType * | GetInput (unsigned int idx) const |
Public Member Functions inherited from mitk::ImageSource | |
| Pointer | Clone () const |
| OutputType * | GetOutput () |
| Get the output data of this image source object. More... | |
| const OutputType * | GetOutput () const |
| OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
| const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
| itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
| Make a DataObject of the correct type to used as the specified output. More... | |
| itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
| virtual vtkImageData * | GetVtkImageData () |
| virtual const vtkImageData * | GetVtkImageData () const |
Public Member Functions inherited from mitk::BaseDataSource | |
| OutputType * | GetOutput () |
| const OutputType * | GetOutput () const |
| OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
| const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
| virtual void | GraftOutput (OutputType *output) |
| Graft the specified BaseData onto this BaseDataSource's output. More... | |
| virtual void | GraftOutput (const DataObjectIdentifierType &key, OutputType *output) |
| virtual void | GraftNthOutput (unsigned int idx, OutputType *output) |
| Graft the specified base data object onto this BaseDataSource's idx'th output. More... | |
| bool | Updating () const |
| Access itk::ProcessObject::m_Updating. More... | |
Protected Member Functions | |
| BeamformingFilter (mitk::BeamformingSettings::Pointer settings) | |
| ~BeamformingFilter () override | |
| void | GenerateInputRequestedRegion () override |
| void | GenerateOutputInformation () override |
| void | GenerateData () override |
Protected Member Functions inherited from mitk::ImageToImageFilter | |
| ImageToImageFilter () | |
| ~ImageToImageFilter () override | |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
| void | GenerateInputRequestedRegion () override |
Protected Member Functions inherited from mitk::ImageSource | |
| ImageSource () | |
| ~ImageSource () override | |
| void | GenerateData () override |
| A version of GenerateData() specific for image processing filters. More... | |
| virtual void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) |
| If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). More... | |
| void | PrepareOutputs () override |
| This method is intentionally left blank. More... | |
| virtual void | AllocateOutputs () |
| The GenerateData method normally allocates the buffers for all of the outputs of a filter. More... | |
| virtual void | BeforeThreadedGenerateData () |
| If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). More... | |
| virtual void | AfterThreadedGenerateData () |
| If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). More... | |
| virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) |
| Split the output's RequestedRegion into "num" pieces, returning region "i" as "splitRegion". More... | |
Protected Member Functions inherited from mitk::BaseDataSource | |
| BaseDataSource () | |
| ~BaseDataSource () override | |
Protected Attributes | |
| itk::TimeStamp | m_TimeOfHeaderInitialization |
| std::function< void(int, std::string)> | m_ProgressHandle |
| The std::function<void(int, std::string)>, through which progress of the currently updating filter is reported. More... | |
| float * | m_OutputData |
| float * | m_InputData |
| float * | m_InputDataPuffer |
| unsigned short * | m_MinMaxLines |
| BeamformingSettings::Pointer | m_Conf |
| Current configuration set. More... | |
| int | m_LastApodizationArraySize |
| mitk::PhotoacousticOCLBeamformingFilter::Pointer | m_BeamformingOclFilter |
| Pointer to the GPU beamforming filter class; for performance reasons the filter is initialized within the constructor and kept for all later computations. More... | |
Additional Inherited Members | |
Public Types inherited from mitk::ImageToImageFilter | |
| typedef ImageToImageFilter | Self |
| typedef ImageSource | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef Superclass::OutputImageRegionType | OutputImageRegionType |
| typedef mitk::Image | InputImageType |
| typedef InputImageType::Pointer | InputImagePointer |
| typedef InputImageType::ConstPointer | InputImageConstPointer |
| typedef SlicedData::RegionType | InputImageRegionType |
Public Types inherited from mitk::ImageSource | |
| typedef ImageSource | Self |
| typedef BaseDataSource | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef mitk::Image | OutputImageType |
| Some convenient typedefs. More... | |
| typedef OutputImageType | OutputType |
| typedef OutputImageType::Pointer | OutputImagePointer |
| typedef SlicedData::RegionType | OutputImageRegionType |
Public Types inherited from mitk::BaseDataSource | |
| typedef BaseDataSource | Self |
| typedef itk::ProcessObject | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef BaseData | OutputType |
| typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
Static Public Member Functions inherited from mitk::ImageToImageFilter | |
| static const char * | GetStaticNameOfClass () |
| static Pointer | New () |
Static Public Member Functions inherited from mitk::ImageSource | |
| static const char * | GetStaticNameOfClass () |
| static Pointer | New () |
| Method for creation through the object factory. More... | |
Static Public Member Functions inherited from mitk::BaseDataSource | |
| static const char * | GetStaticNameOfClass () |
Static Protected Member Functions inherited from mitk::ImageSource | |
| static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
| Static function used as a "callback" by the MultiThreader. More... | |
Static Protected Member Functions inherited from mitk::BaseDataSource | |
| static Pointer | New () |
Class implementing an mitk::ImageToImageFilter for beamforming on both CPU and GPU.
The class must be given a configuration class instance of mitk::BeamformingSettings for beamforming parameters through mitk::BeamformingFilter::Configure(BeamformingSettings settings) Whether the GPU is used can be set in the configuration. For significant problems or important messages a string is written, which can be accessed via GetMessageString().
Definition at line 32 of file mitkBeamformingFilter.h.
|
protected |
Definition at line 24 of file mitkBeamformingFilter.cpp.
References m_BeamformingOclFilter, m_Conf, m_ProgressHandle, MITK_INFO, and mitk::PhotoacousticOCLBeamformingFilter::New().
|
overrideprotected |
Definition at line 48 of file mitkBeamformingFilter.cpp.
References MITK_INFO.
| Pointer mitk::BeamformingFilter::Clone | ( | ) | const |
|
overrideprotected |
Definition at line 91 of file mitkBeamformingFilter.cpp.
References mitk::BeamformingUtils::DASSphericalLine(), mitk::BeamformingUtils::DMASSphericalLine(), GenerateOutputInformation(), mitk::ImageAccessorBase::GetData(), mitk::ImageToImageFilter::GetInput(), mitk::ImageSource::GetOutput(), line, m_BeamformingOclFilter, m_Conf, m_InputData, m_OutputData, m_ProgressHandle, m_TimeOfHeaderInitialization, MITK_ERROR, MITK_INFO, mitkThrow, mitk::Image::New(), and mitk::BeamformingUtils::sDMASSphericalLine().
|
overrideprotected |
Definition at line 53 of file mitkBeamformingFilter.cpp.
References mitk::ImageToImageFilter::GetInput(), mitk::ImageSource::GetOutput(), mitk::BaseData::IsInitialized(), and mitk::SlicedData::SetRequestedRegionToLargestPossibleRegion().
|
overrideprotected |
Definition at line 67 of file mitkBeamformingFilter.cpp.
References mitk::ImageToImageFilter::GetInput(), mitk::ImageSource::GetOutput(), m_Conf, and m_TimeOfHeaderInitialization.
Referenced by GenerateData().
| mitk::BeamformingFilter::mitkClassMacro | ( | BeamformingFilter | , |
| ImageToImageFilter | |||
| ) |
| mitk::BeamformingFilter::mitkNewMacro1Param | ( | Self | , |
| mitk::BeamformingSettings::Pointer | |||
| ) |
| void mitk::BeamformingFilter::SetProgressHandle | ( | std::function< void(int, std::string)> | progressHandle | ) |
Sets a callback for progress checking.
An std::function<void(int, std::string)> can be set, through which progress of the currently updating filter is reported. The integer argument is a number between 0 an 100 to indicate how far completion has been achieved, the std::string argument indicates what the filter is currently doing.
Definition at line 43 of file mitkBeamformingFilter.cpp.
References m_ProgressHandle.
|
protected |
Pointer to the GPU beamforming filter class; for performance reasons the filter is initialized within the constructor and kept for all later computations.
Definition at line 82 of file mitkBeamformingFilter.h.
Referenced by BeamformingFilter(), and GenerateData().
|
protected |
Current configuration set.
Definition at line 73 of file mitkBeamformingFilter.h.
Referenced by BeamformingFilter(), GenerateData(), and GenerateOutputInformation().
|
protected |
Definition at line 67 of file mitkBeamformingFilter.h.
Referenced by GenerateData().
|
protected |
Definition at line 68 of file mitkBeamformingFilter.h.
|
protected |
The size of the apodization array when it last changed.
Definition at line 78 of file mitkBeamformingFilter.h.
|
protected |
Definition at line 69 of file mitkBeamformingFilter.h.
|
protected |
Definition at line 66 of file mitkBeamformingFilter.h.
Referenced by GenerateData().
|
protected |
The std::function<void(int, std::string)>, through which progress of the currently updating filter is reported.
Definition at line 64 of file mitkBeamformingFilter.h.
Referenced by BeamformingFilter(), GenerateData(), and SetProgressHandle().
|
protected |
Definition at line 60 of file mitkBeamformingFilter.h.
Referenced by GenerateData(), and GenerateOutputInformation().