Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
This class denoises a vectorimage according to the non-local means procedure. More...
#include <itkNonLocalMeansDenoisingFilter.h>
Public Types | |
typedef NonLocalMeansDenoisingFilter | Self |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef ImageToImageFilter< VectorImage< TPixelType, 3 >, VectorImage< TPixelType, 3 > > | Superclass |
typedef Superclass::InputImageType | InputImageType |
typedef Superclass::OutputImageType | OutputImageType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef Image< TPixelType, 3 > | MaskImageType |
Public Member Functions | |
Pointer | Clone () const |
virtual const char * | GetClassName () const |
virtual void | SetUseJointInformation (bool _arg) |
Set flag to use joint information. More... | |
virtual void | SetSearchRadius (int _arg) |
Set the searchradius. More... | |
virtual void | SetComparisonRadius (int _arg) |
Set the comparisonradius. More... | |
virtual void | SetVariance (double _arg) |
Set the variance of the noise. More... | |
virtual void | SetUseRicianAdaption (bool _arg) |
Set flag to use a rician adaption. More... | |
virtual unsigned int | GetCurrentVoxelCount () |
Get the amount of calculated Voxels. More... | |
void | SetInputImage (const InputImageType *image) |
Set the input image. More... | |
void | SetInputMask (MaskImageType *mask) |
Set a denoising mask. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
NonLocalMeansDenoisingFilter () | |
~NonLocalMeansDenoisingFilter () | |
void | BeforeThreadedGenerateData () |
Calculations which need to be done before the denoising starts. More... | |
void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType) |
Denoising procedure. More... | |
This class denoises a vectorimage according to the non-local means procedure.
This Filter needs as an input a diffusion weigthed image, which will be denoised unsing the non-local means principle. An input mask is optional to denoise only inside the mask range. All other voxels will be set to 0.
Definition at line 33 of file itkNonLocalMeansDenoisingFilter.h.
typedef SmartPointer<const Self> itk::NonLocalMeansDenoisingFilter< TPixelType >::ConstPointer |
Definition at line 41 of file itkNonLocalMeansDenoisingFilter.h.
typedef Superclass::InputImageType itk::NonLocalMeansDenoisingFilter< TPixelType >::InputImageType |
Definition at line 43 of file itkNonLocalMeansDenoisingFilter.h.
typedef Image<TPixelType, 3> itk::NonLocalMeansDenoisingFilter< TPixelType >::MaskImageType |
Definition at line 46 of file itkNonLocalMeansDenoisingFilter.h.
typedef Superclass::OutputImageRegionType itk::NonLocalMeansDenoisingFilter< TPixelType >::OutputImageRegionType |
Definition at line 45 of file itkNonLocalMeansDenoisingFilter.h.
typedef Superclass::OutputImageType itk::NonLocalMeansDenoisingFilter< TPixelType >::OutputImageType |
Definition at line 44 of file itkNonLocalMeansDenoisingFilter.h.
typedef SmartPointer<Self> itk::NonLocalMeansDenoisingFilter< TPixelType >::Pointer |
Definition at line 40 of file itkNonLocalMeansDenoisingFilter.h.
typedef NonLocalMeansDenoisingFilter itk::NonLocalMeansDenoisingFilter< TPixelType >::Self |
Typedefs
Definition at line 39 of file itkNonLocalMeansDenoisingFilter.h.
typedef ImageToImageFilter< VectorImage < TPixelType, 3 >, VectorImage < TPixelType, 3 > > itk::NonLocalMeansDenoisingFilter< TPixelType >::Superclass |
Definition at line 42 of file itkNonLocalMeansDenoisingFilter.h.
|
protected |
|
inlineprotected |
Definition at line 107 of file itkNonLocalMeansDenoisingFilter.h.
|
protected |
Calculations which need to be done before the denoising starts.
This method is called before the denoising starts. It calculates the ROI if a mask is used and sets the number of processed voxels to zero.
Pointer itk::NonLocalMeansDenoisingFilter< TPixelType >::Clone | ( | ) | const |
|
virtual |
Runtime information support.
|
virtual |
Get the amount of calculated Voxels.
|
static |
Method for creation through the object factory.
Referenced by main().
|
virtual |
Set the comparisonradius.
The comparisonradius generates neighborhoods of size (2 * comparisonradius +1)³. Default is 1.
void itk::NonLocalMeansDenoisingFilter< TPixelType >::SetInputImage | ( | const InputImageType * | image | ) |
Set the input image.
void itk::NonLocalMeansDenoisingFilter< TPixelType >::SetInputMask | ( | MaskImageType * | mask | ) |
Set a denoising mask.
optional
Set a mask to denoise only the masked area, all voxel outside this area will be set to 0.
|
virtual |
Set the searchradius.
The searchradius generates a neighborhood of size (2 * searchradius + 1)³. Default is 4.
|
virtual |
Set flag to use joint information.
|
virtual |
Set flag to use a rician adaption.
If this flag is true the filter uses a method which is optimized for Rician distributed noise.
|
virtual |
Set the variance of the noise.
The variance of the noise needs to be estimated to use this filter properly. Default is 1.
|
protected |
Denoising procedure.
This method calculates the denoised voxelvalue for each voxel in the image in multiple threads. If a mask is used, voxels outside the masked area will be set to 0.
outputRegionForThread | Region to denoise for each thread. |