Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Applies a common filter-pipeline to the first input of this filter. More...
#include <mitkToFCompositeFilter.h>
Public Member Functions | |
mitkClassMacro (ToFCompositeFilter, ImageToImageFilter) | |
Pointer | Clone () const |
virtual void | SetSegmentationMask (mitk::Image::Pointer _arg) |
virtual void | SetApplyTemporalMedianFilter (bool _arg) |
virtual bool | GetApplyTemporalMedianFilter () const |
virtual void | SetApplyAverageFilter (bool _arg) |
virtual bool | GetApplyAverageFilter () const |
virtual void | SetApplyMedianFilter (bool _arg) |
virtual bool | GetApplyMedianFilter () const |
virtual void | SetApplyThresholdFilter (bool _arg) |
virtual bool | GetApplyThresholdFilter () const |
virtual void | SetApplyMaskSegmentation (bool _arg) |
virtual bool | GetApplyMaskSegmentation () const |
virtual void | SetApplyBilateralFilter (bool _arg) |
virtual bool | GetApplyBilateralFilter () const |
void | SetInput (const InputImageType *distanceImage) override |
sets the input of this filter More... | |
void | SetInput (unsigned int idx, const InputImageType *distanceImage) override |
sets the input of this filter at idx More... | |
Image * | GetInput () |
returns the input of this filter More... | |
Image * | GetInput (unsigned int idx) |
returns the input with id idx of this filter More... | |
void | SetTemporalMedianFilterParameter (int tmporalMedianFilterNumOfFrames) |
Sets the parameter of the temporal median filter. More... | |
void | SetThresholdFilterParameter (int min, int max) |
Sets the parameters (lower, upper threshold) of the threshold filter. More... | |
void | SetBilateralFilterParameter (double domainSigma, double rangeSigma, int kernelRadius) |
Sets the parameters (domain sigma, range sigma, kernel radius) of the bilateral filter. More... | |
Public Member Functions inherited from mitk::ImageToImageFilter | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
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... | |
Static Public Member Functions | |
static Pointer | New () |
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 () |
Protected Member Functions | |
ToFCompositeFilter () | |
standard constructor More... | |
~ToFCompositeFilter () override | |
standard destructor More... | |
void | GenerateOutputInformation () override |
void | GenerateData () override |
method generating the output of this filter. Called in the updated process of the pipeline. This method generates the output of the ToFSurfaceSource: The generated surface of the 3d points More... | |
void | CreateOutputsForAllInputs () |
Create an output for each input. More... | |
void | ProcessSegmentation (IplImage *inputIplImage) |
Applies a mask and/or threshold segmentation to the input image. All pixels with values outside the mask, below the lower threshold (min) and above the upper threshold (max) are assigned the pixel value 0. More... | |
ItkImageType2D::Pointer | ProcessItkBilateralFilter (ItkImageType2D::Pointer inputItkImage) |
Applies the ITK bilateral filter to the input image. More... | |
void | ProcessCVBilateralFilter (IplImage *inputIplImage, IplImage *outputIplImage) |
Applies the OpenCV bilateral filter to the input image. More... | |
void | ProcessCVMedianFilter (IplImage *inputIplImage, IplImage *outputIplImage, int radius=3) |
Applies the OpenCV median filter to the input image. More... | |
void | ProcessStreamedQuickSelectMedianImageFilter (IplImage *inputIplImage) |
Performs temporal median filter on an image given the number of frames to be considered. More... | |
float | quick_select (float arr[], int n) |
Quickselect algorithm This Quickselect routine is based on the algorithm described in "Numerical recipes in C", Second Edition, Cambridge University Press, 1992, Section 8.5, ISBN 0-521-43108-5 This code by Nicolas Devillard - 1998. Public domain. More... | |
void | CreateItkImage (ItkImageType2D::Pointer &itkInputImage) |
Initialize and allocate a 2D ITK image of dimension m_ImageWidth*m_ImageHeight. More... | |
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 | |
mitk::Image::Pointer | m_SegmentationMask |
mask image used for segmenting the image More... | |
int | m_ImageWidth |
x-dimension of the image More... | |
int | m_ImageHeight |
y-dimension of the image More... | |
int | m_ImageSize |
size of the image in bytes More... | |
IplImage * | m_IplDistanceImage |
OpenCV-representation of the distance image. More... | |
IplImage * | m_IplOutputImage |
OpenCV-representation of the output image. More... | |
ItkImageType2D::Pointer | m_ItkInputImage |
ITK representation of the distance image. More... | |
bool | m_ApplyTemporalMedianFilter |
Flag indicating if the temporal median filter is currently active for processing the distance image. More... | |
bool | m_ApplyAverageFilter |
Flag indicating if the average filter is currently active for processing the distance image. More... | |
bool | m_ApplyMedianFilter |
Flag indicating if the spatial median filter is currently active for processing the distance image. More... | |
bool | m_ApplyThresholdFilter |
Flag indicating if the threshold filter is currently active for processing the distance image. More... | |
bool | m_ApplyMaskSegmentation |
Flag indicating if a mask segmentation is performed. More... | |
bool | m_ApplyBilateralFilter |
Flag indicating if the bilateral filter is currently active for processing the distance image. More... | |
float ** | m_DataBuffer |
Buffer used for calculating the pixel-wise median over the last n (m_TemporalMedianFilterNumOfFrames) number of frames. More... | |
int | m_DataBufferCurrentIndex |
Current index in the buffer of the temporal median filter. More... | |
int | m_DataBufferMaxSize |
Maximal size for the buffer of the temporal median filter (m_DataBuffer) More... | |
int | m_TemporalMedianFilterNumOfFrames |
Number of frames to be used in the calculation of the temporal median. More... | |
int | m_ThresholdFilterMin |
Lower threshold of the threshold filter. Pixels with values below will be assigned value 0 when applying the threshold filter. More... | |
int | m_ThresholdFilterMax |
Lower threshold of the threshold filter. Pixels with values above will be assigned value 0 when applying the threshold filter. More... | |
double | m_BilateralFilterDomainSigma |
Parameter of the bilateral filter controlling the smoothing effect of the filter. Default value: 2. More... | |
double | m_BilateralFilterRangeSigma |
Parameter of the bilateral filter controlling the edge preserving effect of the filter. Default value: 60. More... | |
int | m_BilateralFilterKernelRadius |
Kernel radius of the bilateral filter mask. More... | |
Applies a common filter-pipeline to the first input of this filter.
This class intends to allow quick preprocessing of (ToF) range data. Input 0 of this filter, holding the range image, is processed using the following image processing filters:
Definition at line 40 of file mitkToFCompositeFilter.h.
|
protected |
standard constructor
|
overrideprotected |
standard destructor
Pointer mitk::ToFCompositeFilter::Clone | ( | ) | const |
|
protected |
Initialize and allocate a 2D ITK image of dimension m_ImageWidth*m_ImageHeight.
|
protected |
Create an output for each input.
This Method sets the number of outputs to the number of inputs and creates missing outputs objects.
|
overrideprotected |
method generating the output of this filter. Called in the updated process of the pipeline. This method generates the output of the ToFSurfaceSource: The generated surface of the 3d points
|
overrideprotected |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Image* mitk::ToFCompositeFilter::GetInput | ( | ) |
returns the input of this filter
Image* mitk::ToFCompositeFilter::GetInput | ( | unsigned int | idx | ) |
returns the input with id idx of this filter
mitk::ToFCompositeFilter::mitkClassMacro | ( | ToFCompositeFilter | , |
ImageToImageFilter | |||
) |
|
static |
|
protected |
Applies the OpenCV bilateral filter to the input image.
|
protected |
Applies the OpenCV median filter to the input image.
|
protected |
Applies the ITK bilateral filter to the input image.
|
protected |
Applies a mask and/or threshold segmentation to the input image. All pixels with values outside the mask, below the lower threshold (min) and above the upper threshold (max) are assigned the pixel value 0.
|
protected |
Performs temporal median filter on an image given the number of frames to be considered.
|
protected |
Quickselect algorithm This Quickselect routine is based on the algorithm described in "Numerical recipes in C", Second Edition, Cambridge University Press, 1992, Section 8.5, ISBN 0-521-43108-5 This code by Nicolas Devillard - 1998. Public domain.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void mitk::ToFCompositeFilter::SetBilateralFilterParameter | ( | double | domainSigma, |
double | rangeSigma, | ||
int | kernelRadius | ||
) |
Sets the parameters (domain sigma, range sigma, kernel radius) of the bilateral filter.
domainSigma | Parameter controlling the smoothing effect of the bilateral filter. Default value: 2 |
rangeSigma | Parameter controlling the edge preserving effect of the bilateral filter. Default value: 60 |
kernelRadius | radius of the filter mask of the bilateral filter |
|
overridevirtual |
sets the input of this filter
distanceImage | input is the distance image of e.g. a ToF camera |
Reimplemented from mitk::ImageToImageFilter.
|
overridevirtual |
sets the input of this filter at idx
idx | number of the current input |
distanceImage | input is the distance image of e.g. a ToF camera |
Reimplemented from mitk::ImageToImageFilter.
|
virtual |
void mitk::ToFCompositeFilter::SetTemporalMedianFilterParameter | ( | int | tmporalMedianFilterNumOfFrames | ) |
Sets the parameter of the temporal median filter.
tmporalMedianFilterNumOfFrames | number of frames to be considered for calulating the temporal median |
void mitk::ToFCompositeFilter::SetThresholdFilterParameter | ( | int | min, |
int | max | ||
) |
Sets the parameters (lower, upper threshold) of the threshold filter.
min | lower threshold of the threshold filter |
max | upper threshold of the threshold filter |
|
protected |
Flag indicating if the average filter is currently active for processing the distance image.
Definition at line 174 of file mitkToFCompositeFilter.h.
|
protected |
Flag indicating if the bilateral filter is currently active for processing the distance image.
Definition at line 178 of file mitkToFCompositeFilter.h.
|
protected |
Flag indicating if a mask segmentation is performed.
Definition at line 177 of file mitkToFCompositeFilter.h.
|
protected |
Flag indicating if the spatial median filter is currently active for processing the distance image.
Definition at line 175 of file mitkToFCompositeFilter.h.
|
protected |
Flag indicating if the temporal median filter is currently active for processing the distance image.
Definition at line 173 of file mitkToFCompositeFilter.h.
|
protected |
Flag indicating if the threshold filter is currently active for processing the distance image.
Definition at line 176 of file mitkToFCompositeFilter.h.
|
protected |
Parameter of the bilateral filter controlling the smoothing effect of the filter. Default value: 2.
Definition at line 187 of file mitkToFCompositeFilter.h.
|
protected |
Kernel radius of the bilateral filter mask.
Definition at line 189 of file mitkToFCompositeFilter.h.
|
protected |
Parameter of the bilateral filter controlling the edge preserving effect of the filter. Default value: 60.
Definition at line 188 of file mitkToFCompositeFilter.h.
|
protected |
Buffer used for calculating the pixel-wise median over the last n (m_TemporalMedianFilterNumOfFrames) number of frames.
Definition at line 180 of file mitkToFCompositeFilter.h.
|
protected |
Current index in the buffer of the temporal median filter.
Definition at line 181 of file mitkToFCompositeFilter.h.
|
protected |
Maximal size for the buffer of the temporal median filter (m_DataBuffer)
Definition at line 182 of file mitkToFCompositeFilter.h.
|
protected |
y-dimension of the image
Definition at line 165 of file mitkToFCompositeFilter.h.
|
protected |
size of the image in bytes
Definition at line 166 of file mitkToFCompositeFilter.h.
|
protected |
x-dimension of the image
Definition at line 164 of file mitkToFCompositeFilter.h.
|
protected |
OpenCV-representation of the distance image.
Definition at line 168 of file mitkToFCompositeFilter.h.
|
protected |
OpenCV-representation of the output image.
Definition at line 169 of file mitkToFCompositeFilter.h.
|
protected |
ITK representation of the distance image.
Definition at line 171 of file mitkToFCompositeFilter.h.
|
protected |
mask image used for segmenting the image
Definition at line 162 of file mitkToFCompositeFilter.h.
|
protected |
Number of frames to be used in the calculation of the temporal median.
Definition at line 184 of file mitkToFCompositeFilter.h.
|
protected |
Lower threshold of the threshold filter. Pixels with values above will be assigned value 0 when applying the threshold filter.
Definition at line 186 of file mitkToFCompositeFilter.h.
|
protected |
Lower threshold of the threshold filter. Pixels with values below will be assigned value 0 when applying the threshold filter.
Definition at line 185 of file mitkToFCompositeFilter.h.