SimpleITK  1.1.0
sitkPatchBasedDenoisingImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright Insight Software Consortium
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18 #ifndef sitkPatchBasedDenoisingImageFilter_h
19 #define sitkPatchBasedDenoisingImageFilter_h
20 
21 /*
22  * WARNING: DO NOT EDIT THIS FILE!
23  * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24  * Please look at sitkImageFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
47  public:
49 
52 
56 
59 
60 
61 
65  SITK_RETURN_SELF_TYPE_HEADER SetKernelBandwidthSigma ( double KernelBandwidthSigma ) { this->m_KernelBandwidthSigma = KernelBandwidthSigma; return *this; }
66 
70  double GetKernelBandwidthSigma() const { return this->m_KernelBandwidthSigma; }
71 
76  SITK_RETURN_SELF_TYPE_HEADER SetPatchRadius ( uint32_t PatchRadius ) { this->m_PatchRadius = PatchRadius; return *this; }
77 
82  uint32_t GetPatchRadius() const { return this->m_PatchRadius; }
83 
88  SITK_RETURN_SELF_TYPE_HEADER SetNumberOfIterations ( uint32_t NumberOfIterations ) { this->m_NumberOfIterations = NumberOfIterations; return *this; }
89 
94  uint32_t GetNumberOfIterations() const { return this->m_NumberOfIterations; }
95 
100  SITK_RETURN_SELF_TYPE_HEADER SetNumberOfSamplePatches ( uint32_t NumberOfSamplePatches ) { this->m_NumberOfSamplePatches = NumberOfSamplePatches; return *this; }
101 
104  uint32_t GetNumberOfSamplePatches() const { return this->m_NumberOfSamplePatches; }
105 
110  SITK_RETURN_SELF_TYPE_HEADER SetSampleVariance ( double SampleVariance ) { this->m_SampleVariance = SampleVariance; return *this; }
111 
116  double GetSampleVariance() const { return this->m_SampleVariance; }
117 
118  typedef enum {NOMODEL,GAUSSIAN,RICIAN,POISSON} NoiseModelType;
119 
124  SITK_RETURN_SELF_TYPE_HEADER SetNoiseModel ( NoiseModelType NoiseModel ) { this->m_NoiseModel = NoiseModel; return *this; }
125 
130  NoiseModelType GetNoiseModel() const { return this->m_NoiseModel; }
131 
135  SITK_RETURN_SELF_TYPE_HEADER SetNoiseSigma ( double NoiseSigma ) { this->m_NoiseSigma = NoiseSigma; return *this; }
136 
139  double GetNoiseSigma() const { return this->m_NoiseSigma; }
140 
145  SITK_RETURN_SELF_TYPE_HEADER SetNoiseModelFidelityWeight ( double NoiseModelFidelityWeight ) { this->m_NoiseModelFidelityWeight = NoiseModelFidelityWeight; return *this; }
146 
151  double GetNoiseModelFidelityWeight() const { return this->m_NoiseModelFidelityWeight; }
152 
157  SITK_RETURN_SELF_TYPE_HEADER SetAlwaysTreatComponentsAsEuclidean ( bool AlwaysTreatComponentsAsEuclidean ) { this->m_AlwaysTreatComponentsAsEuclidean = AlwaysTreatComponentsAsEuclidean; return *this; }
158 
160  SITK_RETURN_SELF_TYPE_HEADER AlwaysTreatComponentsAsEuclideanOn() { return this->SetAlwaysTreatComponentsAsEuclidean(true); }
161  SITK_RETURN_SELF_TYPE_HEADER AlwaysTreatComponentsAsEuclideanOff() { return this->SetAlwaysTreatComponentsAsEuclidean(false); }
162 
167  bool GetAlwaysTreatComponentsAsEuclidean() const { return this->m_AlwaysTreatComponentsAsEuclidean; }
168 
173  SITK_RETURN_SELF_TYPE_HEADER SetKernelBandwidthEstimation ( bool KernelBandwidthEstimation ) { this->m_KernelBandwidthEstimation = KernelBandwidthEstimation; return *this; }
174 
176  SITK_RETURN_SELF_TYPE_HEADER KernelBandwidthEstimationOn() { return this->SetKernelBandwidthEstimation(true); }
177  SITK_RETURN_SELF_TYPE_HEADER KernelBandwidthEstimationOff() { return this->SetKernelBandwidthEstimation(false); }
178 
183  bool GetKernelBandwidthEstimation() const { return this->m_KernelBandwidthEstimation; }
184 
188  SITK_RETURN_SELF_TYPE_HEADER SetKernelBandwidthMultiplicationFactor ( double KernelBandwidthMultiplicationFactor ) { this->m_KernelBandwidthMultiplicationFactor = KernelBandwidthMultiplicationFactor; return *this; }
189 
193  double GetKernelBandwidthMultiplicationFactor() const { return this->m_KernelBandwidthMultiplicationFactor; }
194 
199  SITK_RETURN_SELF_TYPE_HEADER SetKernelBandwidthUpdateFrequency ( uint32_t KernelBandwidthUpdateFrequency ) { this->m_KernelBandwidthUpdateFrequency = KernelBandwidthUpdateFrequency; return *this; }
200 
205  uint32_t GetKernelBandwidthUpdateFrequency() const { return this->m_KernelBandwidthUpdateFrequency; }
206 
210  SITK_RETURN_SELF_TYPE_HEADER SetKernelBandwidthFractionPixelsForEstimation ( double KernelBandwidthFractionPixelsForEstimation ) { this->m_KernelBandwidthFractionPixelsForEstimation = KernelBandwidthFractionPixelsForEstimation; return *this; }
211 
215  double GetKernelBandwidthFractionPixelsForEstimation() const { return this->m_KernelBandwidthFractionPixelsForEstimation; }
217  std::string GetName() const { return std::string ("PatchBasedDenoisingImageFilter"); }
218 
220  std::string ToString() const;
221 
222 
224  Image Execute ( const Image& image1 );
225 
226 
228  Image Execute ( const Image& image1, double kernelBandwidthSigma, uint32_t patchRadius, uint32_t numberOfIterations, uint32_t numberOfSamplePatches, double sampleVariance, PatchBasedDenoisingImageFilter::NoiseModelType noiseModel, double noiseSigma, double noiseModelFidelityWeight, bool alwaysTreatComponentsAsEuclidean, bool kernelBandwidthEstimation, double kernelBandwidthMultiplicationFactor, uint32_t kernelBandwidthUpdateFrequency, double kernelBandwidthFractionPixelsForEstimation );
229 
230  private:
231 
234  typedef Image (Self::*MemberFunctionType)( const Image& image1 );
235  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
236 
237 
238  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
239 
240  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
241 
242 
243  /* KernelBandwidthSigma */
246  /* Number of iterations to run */
251  double m_NoiseSigma;
258  };
259 
260 
261  }
262 }
263 #endif
itk::simple::Image
The main Image class for SimpleITK.
Definition: sitkImage.h:54
sitkBasicFilters.h
itk::simple::PatchBasedDenoisingImageFilter
Derived class implementing a specific patch-based denoising algorithm, as detailed below.
Definition: sitkPatchBasedDenoisingImageFilter.h:46
itk::simple::PatchBasedDenoisingImageFilter::KernelBandwidthEstimationOff
Self & KernelBandwidthEstimationOff()
Definition: sitkPatchBasedDenoisingImageFilter.h:177
itk::simple::PatchBasedDenoisingImageFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkPatchBasedDenoisingImageFilter.h:58
itk::simple::PatchBasedDenoisingImageFilter::SetKernelBandwidthUpdateFrequency
Self & SetKernelBandwidthUpdateFrequency(uint32_t KernelBandwidthUpdateFrequency)
Definition: sitkPatchBasedDenoisingImageFilter.h:199
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::PatchBasedDenoisingImageFilter::RICIAN
@ RICIAN
Definition: sitkPatchBasedDenoisingImageFilter.h:118
itk::simple::PatchBasedDenoisingImageFilter::SetNoiseModel
Self & SetNoiseModel(NoiseModelType NoiseModel)
Definition: sitkPatchBasedDenoisingImageFilter.h:124
itk::simple::PatchBasedDenoisingImageFilter::GetNoiseModel
NoiseModelType GetNoiseModel() const
Definition: sitkPatchBasedDenoisingImageFilter.h:130
itk::simple::PatchBasedDenoisingImageFilter::m_KernelBandwidthUpdateFrequency
uint32_t m_KernelBandwidthUpdateFrequency
Definition: sitkPatchBasedDenoisingImageFilter.h:256
itk::simple::PatchBasedDenoisingImageFilter::m_AlwaysTreatComponentsAsEuclidean
bool m_AlwaysTreatComponentsAsEuclidean
Definition: sitkPatchBasedDenoisingImageFilter.h:253
itk::simple::PatchBasedDenoisingImageFilter::AlwaysTreatComponentsAsEuclideanOff
Self & AlwaysTreatComponentsAsEuclideanOff()
Definition: sitkPatchBasedDenoisingImageFilter.h:161
itk::simple::PatchBasedDenoisingImageFilter::AlwaysTreatComponentsAsEuclideanOn
Self & AlwaysTreatComponentsAsEuclideanOn()
Definition: sitkPatchBasedDenoisingImageFilter.h:160
itk::simple::PatchBasedDenoisingImageFilter::GetSampleVariance
double GetSampleVariance() const
Definition: sitkPatchBasedDenoisingImageFilter.h:116
itk::simple::PatchBasedDenoisingImageFilter::SetSampleVariance
Self & SetSampleVariance(double SampleVariance)
Definition: sitkPatchBasedDenoisingImageFilter.h:110
itk::simple::BasicPixelIDTypeList
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:53
sitkImageFilter.h
itk::simple::PatchBasedDenoisingImageFilter::SetKernelBandwidthFractionPixelsForEstimation
Self & SetKernelBandwidthFractionPixelsForEstimation(double KernelBandwidthFractionPixelsForEstimation)
Definition: sitkPatchBasedDenoisingImageFilter.h:210
itk::simple::PatchBasedDenoisingImageFilter::GetAlwaysTreatComponentsAsEuclidean
bool GetAlwaysTreatComponentsAsEuclidean() const
Definition: sitkPatchBasedDenoisingImageFilter.h:167
itk::simple::PatchBasedDenoisingImageFilter::NoiseModelType
NoiseModelType
Definition: sitkPatchBasedDenoisingImageFilter.h:118
itk::simple::PatchBasedDenoisingImageFilter::SetKernelBandwidthMultiplicationFactor
Self & SetKernelBandwidthMultiplicationFactor(double KernelBandwidthMultiplicationFactor)
Definition: sitkPatchBasedDenoisingImageFilter.h:188
itk::simple::PatchBasedDenoisingImageFilter::GetNumberOfIterations
uint32_t GetNumberOfIterations() const
Definition: sitkPatchBasedDenoisingImageFilter.h:94
NoiseModel
itk::simple::PatchBasedDenoisingImageFilter::GetKernelBandwidthEstimation
bool GetKernelBandwidthEstimation() const
Definition: sitkPatchBasedDenoisingImageFilter.h:183
itk::simple::PatchBasedDenoisingImageFilter::GetNoiseSigma
double GetNoiseSigma() const
Definition: sitkPatchBasedDenoisingImageFilter.h:139
itk::simple::PatchBasedDenoisingImageFilter::m_NumberOfIterations
uint32_t m_NumberOfIterations
Definition: sitkPatchBasedDenoisingImageFilter.h:247
itk::simple::PatchBasedDenoisingImageFilter::KernelBandwidthEstimationOn
Self & KernelBandwidthEstimationOn()
Definition: sitkPatchBasedDenoisingImageFilter.h:176
itk::simple::PatchBasedDenoisingImageFilter::SetAlwaysTreatComponentsAsEuclidean
Self & SetAlwaysTreatComponentsAsEuclidean(bool AlwaysTreatComponentsAsEuclidean)
Definition: sitkPatchBasedDenoisingImageFilter.h:157
itk::simple::PatchBasedDenoisingImageFilter::m_KernelBandwidthMultiplicationFactor
double m_KernelBandwidthMultiplicationFactor
Definition: sitkPatchBasedDenoisingImageFilter.h:255
itk::simple::PatchBasedDenoisingImageFilter::m_NoiseModelFidelityWeight
double m_NoiseModelFidelityWeight
Definition: sitkPatchBasedDenoisingImageFilter.h:252
itk::simple::PatchBasedDenoisingImageFilter::SetKernelBandwidthSigma
Self & SetKernelBandwidthSigma(double KernelBandwidthSigma)
Definition: sitkPatchBasedDenoisingImageFilter.h:65
itk::simple::PatchBasedDenoisingImageFilter::m_NoiseSigma
double m_NoiseSigma
Definition: sitkPatchBasedDenoisingImageFilter.h:251
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:50
itk::simple::PatchBasedDenoisingImageFilter::SetNoiseModelFidelityWeight
Self & SetNoiseModelFidelityWeight(double NoiseModelFidelityWeight)
Definition: sitkPatchBasedDenoisingImageFilter.h:145
itk::simple::PatchBasedDenoisingImageFilter::SetNumberOfSamplePatches
Self & SetNumberOfSamplePatches(uint32_t NumberOfSamplePatches)
Definition: sitkPatchBasedDenoisingImageFilter.h:100
itk::simple::PatchBasedDenoisingImageFilter::GetNoiseModelFidelityWeight
double GetNoiseModelFidelityWeight() const
Definition: sitkPatchBasedDenoisingImageFilter.h:151
itk::simple::PatchBasedDenoisingImageFilter::GetKernelBandwidthMultiplicationFactor
double GetKernelBandwidthMultiplicationFactor() const
Definition: sitkPatchBasedDenoisingImageFilter.h:193
itk::simple::PatchBasedDenoisingImageFilter::SetPatchRadius
Self & SetPatchRadius(uint32_t PatchRadius)
Definition: sitkPatchBasedDenoisingImageFilter.h:76
itk::simple::PatchBasedDenoisingImageFilter::Self
PatchBasedDenoisingImageFilter Self
Definition: sitkPatchBasedDenoisingImageFilter.h:48
itk::simple::PatchBasedDenoisingImageFilter::GetName
std::string GetName() const
Definition: sitkPatchBasedDenoisingImageFilter.h:217
itk::simple::PatchBasedDenoisingImageFilter::GetPatchRadius
uint32_t GetPatchRadius() const
Definition: sitkPatchBasedDenoisingImageFilter.h:82
itk::simple::PatchBasedDenoisingImageFilter::GetKernelBandwidthUpdateFrequency
uint32_t GetKernelBandwidthUpdateFrequency() const
Definition: sitkPatchBasedDenoisingImageFilter.h:205
itk::simple::PatchBasedDenoisingImageFilter::m_PatchRadius
uint32_t m_PatchRadius
Definition: sitkPatchBasedDenoisingImageFilter.h:245
itk::simple::PatchBasedDenoisingImageFilter::m_NoiseModel
NoiseModelType m_NoiseModel
Definition: sitkPatchBasedDenoisingImageFilter.h:250
itk
itk::simple::PatchBasedDenoisingImageFilter::GetKernelBandwidthSigma
double GetKernelBandwidthSigma() const
Definition: sitkPatchBasedDenoisingImageFilter.h:70
itk::simple::PatchBasedDenoisingImageFilter::m_NumberOfSamplePatches
uint32_t m_NumberOfSamplePatches
Definition: sitkPatchBasedDenoisingImageFilter.h:248
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:37
itk::simple::ProcessObject
Base class for SimpleITK classes based on ProcessObject.
Definition: sitkProcessObject.h:50
itk::simple::PatchBasedDenoisingImageFilter::SetKernelBandwidthEstimation
Self & SetKernelBandwidthEstimation(bool KernelBandwidthEstimation)
Definition: sitkPatchBasedDenoisingImageFilter.h:173
itk::simple::PatchBasedDenoisingImageFilter::m_MemberFactory
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkPatchBasedDenoisingImageFilter.h:240
itk::simple::PatchBasedDenoisingImageFilter::GetNumberOfSamplePatches
uint32_t GetNumberOfSamplePatches() const
Definition: sitkPatchBasedDenoisingImageFilter.h:104
itk::simple::PatchBasedDenoisingImageFilter::SetNumberOfIterations
Self & SetNumberOfIterations(uint32_t NumberOfIterations)
Definition: sitkPatchBasedDenoisingImageFilter.h:88
itk::uint32_t
::uint32_t uint32_t
itk::simple::PatchBasedDenoisingImageFilter::m_KernelBandwidthSigma
double m_KernelBandwidthSigma
Definition: sitkPatchBasedDenoisingImageFilter.h:244
itk::simple::PatchBasedDenoisingImageFilter::m_KernelBandwidthFractionPixelsForEstimation
double m_KernelBandwidthFractionPixelsForEstimation
Definition: sitkPatchBasedDenoisingImageFilter.h:257
itk::simple::PatchBasedDenoisingImageFilter::m_SampleVariance
double m_SampleVariance
Definition: sitkPatchBasedDenoisingImageFilter.h:249
itk::simple::PatchBasedDenoisingImageFilter::GetKernelBandwidthFractionPixelsForEstimation
double GetKernelBandwidthFractionPixelsForEstimation() const
Definition: sitkPatchBasedDenoisingImageFilter.h:215
itk::simple::PatchBasedDenoisingImageFilter::m_KernelBandwidthEstimation
bool m_KernelBandwidthEstimation
Definition: sitkPatchBasedDenoisingImageFilter.h:254
itk::simple::PatchBasedDenoisingImageFilter::SetNoiseSigma
Self & SetNoiseSigma(double NoiseSigma)
Definition: sitkPatchBasedDenoisingImageFilter.h:135