Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Class holding methods to apply all Filters within the Photoacoustics Algorithms Module. More...
#include <mitkPhotoacousticFilterService.h>
Public Types | |
enum | BModeMethod { EnvelopeDetection, Abs } |
Defines the methods for the B-Mode filter Currently implemented are an Envelope Detection filter and a simple Absolute filter. More... | |
Public Member Functions | |
mitkClassMacroItkParent (mitk::PhotoacousticFilterService, itk::Object) | |
mitk::Image::Pointer | ApplyBmodeFilter (mitk::Image::Pointer inputImage, BModeMethod method=BModeMethod::Abs, bool UseLogFilter=false) |
Applies a B-Mode Filter. More... | |
mitk::Image::Pointer | ApplyResampling (mitk::Image::Pointer inputImage, double *outputSpacing) |
Resamples the given image. More... | |
mitk::Image::Pointer | ApplyResamplingToDim (mitk::Image::Pointer inputImage, double *outputDimension) |
mitk::Image::Pointer | ApplyBeamforming (mitk::Image::Pointer inputImage, BeamformingSettings::Pointer config, std::function< void(int, std::string)> progressHandle=[](int, std::string) {}) |
Beamforms the given image. More... | |
mitk::Image::Pointer | ApplyCropping (mitk::Image::Pointer inputImage, int above, int below, int right, int left, int minSlice, int maxSlice, int *errCode) |
Crops the given image. More... | |
mitk::Image::Pointer | ExtendImage (mitk::Image::Pointer inputImage, float pixelColor, unsigned int outputDimensionY) |
mitk::Image::Pointer | ApplyBandpassFilter (mitk::Image::Pointer data, float BPHighPass, float BPLowPass, float alphaHighPass, float alphaLowPass, float timeSpacing, float SpeedOfSound, bool IsBFImage) |
Applies a Bandpass filter to the given image. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
PhotoacousticFilterService () | |
~PhotoacousticFilterService () override | |
mitk::Image::Pointer | ConvertToFloat (mitk::Image::Pointer) |
Protected Attributes | |
mitk::BeamformingFilter::Pointer | m_BeamformingFilter |
For performance reasons, an instance of the Beamforming filter is initialized as soon as possible and kept for all further uses. More... | |
Class holding methods to apply all Filters within the Photoacoustics Algorithms Module.
Implemented are:
Definition at line 36 of file mitkPhotoacousticFilterService.h.
Defines the methods for the B-Mode filter Currently implemented are an Envelope Detection filter and a simple Absolute filter.
Enumerator | |
---|---|
EnvelopeDetection | |
Abs |
Definition at line 45 of file mitkPhotoacousticFilterService.h.
|
protected |
Definition at line 39 of file mitkPhotoacousticFilterService.cpp.
References MITK_INFO.
|
overrideprotected |
Definition at line 44 of file mitkPhotoacousticFilterService.cpp.
References MITK_INFO.
mitk::Image::Pointer mitk::PhotoacousticFilterService::ApplyBandpassFilter | ( | mitk::Image::Pointer | data, |
float | BPHighPass, | ||
float | BPLowPass, | ||
float | alphaHighPass, | ||
float | alphaLowPass, | ||
float | timeSpacing, | ||
float | SpeedOfSound, | ||
bool | IsBFImage | ||
) |
Applies a Bandpass filter to the given image.
Applies a bandpass filter to the given image using the given parameters.
data | The image to be processed. |
BPHighPass | The position at which Lower frequencies are completely cut off in Hz. |
BPLowPass | The position at which Higher frequencies are completely cut off in Hz. |
alphaHighPass | The high pass tukey window parameter to control the shape of the bandpass filter: 0 will make it a Box function, 1 a Hann function. alpha can be set between those two bounds. |
alphaLowPass | The low passtukey window parameter to control the shape of the bandpass filter: 0 will make it a Box function, 1 a Hann function. alpha can be set between those two bounds. |
Definition at line 259 of file mitkPhotoacousticFilterService.cpp.
References ConvertToFloat(), MITK_ERROR, and mitk::BandpassFilter::New().
mitk::Image::Pointer mitk::PhotoacousticFilterService::ApplyBeamforming | ( | mitk::Image::Pointer | inputImage, |
BeamformingSettings::Pointer | config, | ||
std::function< void(int, std::string)> | progressHandle = [](int, std::string) {} |
||
) |
Beamforms the given image.
Resamples an image using the given parameters.
inputImage | The image to be processed. |
config | The configuration set to be used for beamforming. |
progressHandle | An std::function<void(int, std::string)>, 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 230 of file mitkPhotoacousticFilterService.cpp.
References ConvertToFloat(), m_BeamformingFilter, mitk::ImageToImageFilter::New(), mitk::Convert2Dto3DImageFilter::New(), and mitk::Image::New().
mitk::Image::Pointer mitk::PhotoacousticFilterService::ApplyBmodeFilter | ( | mitk::Image::Pointer | inputImage, |
BModeMethod | method = BModeMethod::Abs , |
||
bool | UseLogFilter = false |
||
) |
Applies a B-Mode Filter.
Applies a B-Mode filter using the given parameters.
inputImage | The image to be processed. |
method | The kind of B-Mode Filter to be used. |
UseLogFilter | Setting this to true will apply a simple logarithm to the image after the B-Mode Filter has been applied. |
resampleSpacing | If this is set to 0, nothing will be done; otherwise, the image is resampled to a spacing of resampleSpacing mm per pixel. |
Definition at line 49 of file mitkPhotoacousticFilterService.cpp.
References mitk::CastToItkImage(), ConvertToFloat(), mitk::GrabItkImageMemory(), and mitk::PhotoacousticBModeFilter::New().
mitk::Image::Pointer mitk::PhotoacousticFilterService::ApplyCropping | ( | mitk::Image::Pointer | inputImage, |
int | above, | ||
int | below, | ||
int | right, | ||
int | left, | ||
int | minSlice, | ||
int | maxSlice, | ||
int * | errCode | ||
) |
Crops the given image.
Crops an image in 3 dimension using the given parameters.
inputImage | The image to be processed. |
above | How many voxels will be cut from the top of the image. |
below | How many voxels will be cut from the bottom of the image. |
right | How many voxels will be cut from the right side of the image. |
left | How many voxels will be cut from the left side of the image. |
minSlice | The first slice to be present in the resulting volume. |
maxSlice | How many slices are cut off from the end of the volume. |
Definition at line 169 of file mitkPhotoacousticFilterService.cpp.
References ConvertToFloat(), MITK_ERROR, mitk::CropImageFilter::New(), and mitk::Image::New().
mitk::Image::Pointer mitk::PhotoacousticFilterService::ApplyResampling | ( | mitk::Image::Pointer | inputImage, |
double * | outputSpacing | ||
) |
Resamples the given image.
Resamples an image using the given parameters.
inputImage | The image to be processed. |
outputSize | An array of dimensions the image should be resampled to. |
Definition at line 96 of file mitkPhotoacousticFilterService.cpp.
References mitk::CastToItkImage(), ConvertToFloat(), and mitk::GrabItkImageMemory().
mitk::Image::Pointer mitk::PhotoacousticFilterService::ApplyResamplingToDim | ( | mitk::Image::Pointer | inputImage, |
double * | outputDimension | ||
) |
Definition at line 131 of file mitkPhotoacousticFilterService.cpp.
References mitk::CastToItkImage(), ConvertToFloat(), mitk::GrabItkImageMemory(), and MITK_INFO.
|
protected |
Definition at line 290 of file mitkPhotoacousticFilterService.cpp.
References mitk::CastToFloatImageFilter::New().
Referenced by ApplyBandpassFilter(), ApplyBeamforming(), ApplyBmodeFilter(), ApplyCropping(), ApplyResampling(), and ApplyResamplingToDim().
mitk::Image::Pointer mitk::PhotoacousticFilterService::ExtendImage | ( | mitk::Image::Pointer | inputImage, |
float | pixelColor, | ||
unsigned int | outputDimensionY | ||
) |
Definition at line 205 of file mitkPhotoacousticFilterService.cpp.
References mitk::ImageAccessorBase::GetData(), and mitk::Image::New().
mitk::PhotoacousticFilterService::mitkClassMacroItkParent | ( | mitk::PhotoacousticFilterService | , |
itk::Object | |||
) |
|
static |
Referenced by main().
|
protected |
For performance reasons, an instance of the Beamforming filter is initialized as soon as possible and kept for all further uses.
Definition at line 120 of file mitkPhotoacousticFilterService.h.
Referenced by ApplyBeamforming().