17 #ifndef __itkNonLocalMeansDenoisingFilter_h_
18 #define __itkNonLocalMeansDenoisingFilter_h_
20 #include "itkImageToImageFilter.h"
21 #include "itkVectorImage.h"
32 template<
class TPixelType >
34 public ImageToImageFilter< VectorImage < TPixelType, 3 >, VectorImage < TPixelType, 3 > >
42 typedef ImageToImageFilter< VectorImage < TPixelType, 3 >, VectorImage < TPixelType, 3 > >
Superclass;
49 itkFactorylessNewMacro(Self)
58 itkSetMacro(UseJointInformation,
bool)
65 itkSetMacro(SearchRadius,
int)
72 itkSetMacro(ComparisonRadius,
int)
79 itkSetMacro(Variance,
double)
85 itkSetMacro(UseRicianAdaption,
bool)
91 itkGetMacro(CurrentVoxelCount,
unsigned int)
106 NonLocalMeansDenoisingFilter();
107 ~NonLocalMeansDenoisingFilter() {}
132 int m_ComparisonRadius;
133 bool m_UseJointInformation;
134 bool m_UseRicianAdaption;
135 unsigned int m_CurrentVoxelCount;
141 #ifndef ITK_MANUAL_INSTANTIATION
145 #endif //__itkNonLocalMeansDenoisingFilter_h_
itk::SmartPointer< Self > Pointer
ImageToImageFilter< VectorImage< TPixelType, 3 >, VectorImage< TPixelType, 3 > > Superclass
This class denoises a vectorimage according to the non-local means procedure.
SmartPointer< Self > Pointer
Superclass::OutputImageRegionType OutputImageRegionType
Image< TPixelType, 3 > MaskImageType
Superclass::OutputImageType OutputImageType
Superclass::InputImageType InputImageType
itk::Image< double, 3 > InputImageType
NonLocalMeansDenoisingFilter Self
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType)
Denoising procedure.
void BeforeThreadedGenerateData()
Calculations which need to be done before the denoising starts.
void SetInputImage(const InputImageType *image)
Set the input image.
void SetInputMask(MaskImageType *mask)
Set a denoising mask.
SmartPointer< const Self > ConstPointer