ITK  4.2.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions
itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <itkPatchBasedDenoisingImageFilter.h>

+ Inheritance diagram for itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >:

List of all members.

Classes

struct  ThreadDataStruct
struct  ThreadFilterStruct

Public Types

typedef BaseSamplerType::Pointer BaseSamplerPointer
typedef
itk::Statistics::RegionConstrainedSubsampler
< PatchSampleType,
InputImageRegionType
BaseSamplerType
typedef SmartPointer< const SelfConstPointer
typedef
Superclass::InputImagePatchIterator 
InputImagePatchIterator
typedef
ImageRegionConstIterator
< InputImageType
InputImageRegionConstIteratorType
typedef InputImageType::RegionType InputImageRegionType
typedef Superclass::InputImageType InputImageType
typedef
BaseSamplerType::InstanceIdentifier 
InstanceIdentifier
typedef Superclass::ListAdaptorType ListAdaptorType
typedef
Superclass::OutputImagePointer 
OutputImagePointer
typedef ImageRegionIterator
< OutputImageType
OutputImageRegionIteratorType
typedef Superclass::OutputImageType OutputImageType
typedef Superclass::PatchRadiusType PatchRadiusType
typedef ListAdaptorType PatchSampleType
typedef
Superclass::PatchWeightsType 
PatchWeightsType
typedef Array< PixelValueTypePixelArrayType
typedef Superclass::PixelType PixelType
typedef Superclass::PixelValueType PixelValueType
typedef SmartPointer< SelfPointer
typedef Array< RealValueTypeRealArrayType
typedef NumericTraits
< PixelType >::RealType 
RealType
typedef NumericTraits
< PixelValueType >::RealType 
RealValueType
typedef
PatchBasedDenoisingImageFilter 
Self
typedef Array< unsigned short > ShortArrayType
typedef
PatchBasedDenoisingBaseImageFilter
< TInputImage, TOutputImage > 
Superclass
- Public Types inherited from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >
typedef
ZeroFluxNeumannBoundaryCondition
< OutputImageType
BoundaryConditionType
enum  ComponentSpaceType {
  EUCLIDEAN = 0,
  RIEMANNIAN = 1
}
enum  FilterStateType {
  UNINITIALIZED = 0,
  INITIALIZED = 1
}
typedef InputImageType::PixelType InputPixelType
typedef LoggerType::Pointer LoggerPointer
typedef
itk::LoggerThreadWrapper
< itk::Logger
LoggerType
enum  NoiseModelType {
  GAUSSIAN = 0,
  RICIAN = 1,
  POISSON = 2
}
typedef OutputImageType::PixelType OutputPixelType
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
typedef
InputImageType::ConstPointer 
InputImageConstPointer
typedef InputImageType::PixelType InputImagePixelType
typedef InputImageType::Pointer InputImagePointer
typedef
Superclass::OutputImagePixelType 
OutputImagePixelType
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
- Public Types inherited from itk::ImageSource< TOutputImage >
typedef
Superclass::DataObjectIdentifierType 
DataObjectIdentifierType
typedef DataObject::Pointer DataObjectPointer
typedef
Superclass::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
- Public Types inherited from itk::ProcessObject
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
typedef std::vector
< DataObjectIdentifierType
NameArray
- Public Types inherited from itk::Object
- Public Types inherited from itk::LightObject

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
virtual void SetUseSmoothDiscPatchWeights (bool _arg)
virtual void UseSmoothDiscPatchWeightsOn ()
virtual void UseSmoothDiscPatchWeightsOff ()
virtual bool GetUseSmoothDiscPatchWeights () const
virtual void SetGaussianKernelSigma (RealArrayType _arg)
virtual RealArrayType GetGaussianKernelSigma () const
virtual void SetFractionPixelsForSigmaUpdate (double _arg)
virtual const double & GetFractionPixelsForSigmaUpdate ()
virtual void SetComputeConditionalDerivatives (bool _arg)
virtual void ComputeConditionalDerivativesOn ()
virtual void ComputeConditionalDerivativesOff ()
virtual bool GetComputeConditionalDerivatives () const
virtual void SetSigmaMultiplicationFactor (double _arg)
virtual const double & GetSigmaMultiplicationFactor ()
void SetNoiseSigma (const RealType &sigma)
virtual RealType GetNoiseSigma () const
virtual void SetSampler (BaseSamplerType *_arg)
virtual BaseSamplerTypeGetSampler ()
- Public Member Functions inherited from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >
virtual const unsigned int & GetElapsedIterations ()
PatchRadiusType GetPatchDiameterInVoxels () const
PatchRadiusType::SizeValueType GetPatchLengthInVoxels () const
PatchRadiusType GetPatchRadiusInVoxels () const
virtual void SetStateToInitialized ()
virtual void SetStateToUninitialized ()
virtual void SetPatchRadius (unsigned int _arg)
virtual unsigned int GetPatchRadius () const
void SetPatchWeights (const PatchWeightsType &weights)
PatchWeightsType GetPatchWeights () const
virtual void SetNoiseModel (NoiseModelType _arg)
virtual NoiseModelType GetNoiseModel () const
virtual void SetSmoothingWeight (double _arg)
virtual double GetSmoothingWeight () const
virtual void SetFidelityWeight (double _arg)
virtual double GetFidelityWeight () const
virtual void SetDoKernelBandwidthEstimation (bool _arg)
virtual void DoKernelBandwidthEstimationOn ()
virtual void DoKernelBandwidthEstimationOff ()
virtual bool GetDoKernelBandwidthEstimation () const
virtual void SetKernelBandwidthUpdateFrequency (unsigned int _arg)
virtual unsigned int GetKernelBandwidthUpdateFrequency () const
virtual void SetNumberOfIterations (unsigned int _arg)
virtual const unsigned int & GetNumberOfIterations ()
virtual void SetAlwaysTreatComponentsAsEuclidean (bool _arg)
virtual void AlwaysTreatComponentsAsEuclideanOn ()
virtual void AlwaysTreatComponentsAsEuclideanOff ()
virtual bool GetAlwaysTreatComponentsAsEuclidean () const
virtual void SetState (FilterStateType _arg)
virtual const FilterStateTypeGetState ()
virtual void SetManualReinitialization (bool _arg)
virtual const bool & GetManualReinitialization ()
virtual void ManualReinitializationOn ()
virtual void ManualReinitializationOff ()
virtual void SetLogger (LoggerType *_arg)
virtual LoggerTypeGetLogger ()
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
const InputImageTypeGetInput (void) const
const InputImageTypeGetInput (unsigned int idx) const
virtual void PopBackInput ()
virtual void PopFrontInput ()
virtual void PushBackInput (const InputImageType *image)
virtual void PushFrontInput (const InputImageType *image)
virtual void SetInput (const InputImageType *image)
virtual void SetInput (unsigned int, const TInputImage *image)
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput (unsigned int idx)
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
virtual void GraftOutput (DataObject *output)
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
OutputImageTypeGetOutput (void)
const OutputImageTypeGetOutput (void) const
virtual
ProcessObject::DataObjectPointer 
MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx)
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
virtual void AbortGenerateDataOn ()
virtual void EnlargeOutputRequestedRegion (DataObject *)
virtual const bool & GetAbortGenerateData ()
NameArray GetInputNames () const
MultiThreader * GetMultiThreader () const
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
DataObjectPointerArraySizeType GetNumberOfInputs () const
DataObjectPointerArraySizeType GetNumberOfOutputs () const
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
NameArray GetOutputNames () const
virtual const float & GetProgress ()
NameArray GetRequiredInputNames () const
bool HasInput (const DataObjectIdentifierType &key) const
bool HasOutput (const DataObjectIdentifierType &key) const
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
virtual void PrepareOutputs ()
virtual void PropagateRequestedRegion (DataObject *output)
virtual void ResetPipeline ()
virtual void SetAbortGenerateData (bool _arg)
virtual void SetProgress (float _arg)
virtual void Update ()
virtual void UpdateLargestPossibleRegion ()
virtual void UpdateOutputData (DataObject *output)
virtual void UpdateOutputInformation ()
void UpdateProgress (float amount)
DataObjectPointerArray GetInputs ()
DataObjectPointerArray GetOutputs ()
DataObjectPointerArray GetIndexedInputs ()
DataObjectPointerArray GetIndexedOutputs ()
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
virtual void SetReleaseDataFlag (bool flag)
virtual bool GetReleaseDataFlag () const
void ReleaseDataFlagOn ()
void ReleaseDataFlagOff ()
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
virtual const bool & GetReleaseDataBeforeUpdateFlag ()
virtual void ReleaseDataBeforeUpdateFlagOn ()
virtual void ReleaseDataBeforeUpdateFlagOff ()
virtual void SetNumberOfThreads (ThreadIdType _arg)
virtual const ThreadIdTypeGetNumberOfThreads ()
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
unsigned long AddObserver (const EventObject &event, Command *) const
virtual void DebugOff () const
virtual void DebugOn () const
CommandGetCommand (unsigned long tag)
bool GetDebug () const
MetaDataDictionaryGetMetaDataDictionary (void)
const MetaDataDictionaryGetMetaDataDictionary (void) const
virtual unsigned long GetMTime () const
virtual const TimeStampGetTimeStamp () const
bool HasObserver (const EventObject &event) const
void InvokeEvent (const EventObject &)
void InvokeEvent (const EventObject &) const
virtual void Modified () const
virtual void Register () const
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
void SetDebug (bool debugFlag) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void SetReferenceCount (int)
virtual void UnRegister () const
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
virtual int GetReferenceCount () const
 itkCloneMacro (Self)
void Print (std::ostream &os, Indent indent=0) const

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int ImageDimension = Superclass::ImageDimension
static const unsigned int MaxSigmaUpdateIterations = 20
- Static Public Attributes inherited from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static const unsigned int InputImageDimension = TInputImage::ImageDimension
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >

Protected Member Functions

virtual void AllocateUpdateBuffer ()
virtual void ApplyUpdate ()
virtual RealType ComputeGradientJointEntropy (InstanceIdentifier id, typename ListAdaptorType::Pointer &inList, BaseSamplerPointer &sampler)
virtual void ComputeImageUpdate ()
virtual void ComputeKernelBandwidthUpdate ()
void ComputeMinMax (const Image< DiffusionTensor3D< PixelValueType >, ImageDimension > *img)
template<typename TImageType >
EnableIfC< IsSame< typename
TImageType::PixelType,
typename NumericTraits
< typename
TImageType::PixelType >
::ValueType >::Value >::Type 
ComputeMinMax (const TImageType *img)
template<typename TImageType >
DisableIfC< IsSame< typename
TImageType::PixelType,
typename NumericTraits
< typename
TImageType::PixelType >
::ValueType >::Value >::Type 
ComputeMinMax (const TImageType *img)
virtual void CopyInputToOutput ()
virtual void EnforceConstraints ()
virtual void GenerateInputRequestedRegion ()
template<typename T >
EnableIfC< IsSame< T, typename
NumericTraits< T >::ValueType >
::Value, T >::Type 
GetComponent (const T pix, unsigned int) const
template<typename T >
DisableIfC< IsSame< T,
typename NumericTraits< T >
::ValueType >::Value, typename
NumericTraits< T >::ValueType >
::Type 
GetComponent (const T &pix, unsigned int idx) const
virtual ThreadDataStruct GetThreadData (int threadId)
virtual void Initialize ()
virtual void InitializeIteration ()
virtual void InitializeKernelSigma ()
virtual void InitializePatchWeights ()
virtual void InitializePatchWeightsSmoothDisc ()
 PatchBasedDenoisingImageFilter ()
virtual void PostProcessOutput ()
virtual void PrintSelf (std::ostream &os, Indent indent) const
virtual RealArrayType ResolveSigmaUpdate ()
template<typename T >
void SetComponent (T &pix, unsigned int, typename EnableIfC< IsSame< T, typename NumericTraits< T >::ValueType >::Value, RealValueType >::Type val) const
template<typename T >
void SetComponent (T &pix, unsigned int idx, typename DisableIfC< IsSame< T, typename NumericTraits< T >::ValueType >::Value, RealValueType >::Type val) const
virtual void SetThreadData (int threadId, const ThreadDataStruct &data)
virtual void ThreadedApplyUpdate (const InputImageRegionType &regionToProcess, const int)
virtual ThreadDataStruct ThreadedComputeImageUpdate (const InputImageRegionType &regionToProcess, const int threadId, ThreadDataStruct threadData)
virtual ThreadDataStruct ThreadedComputeSigmaUpdate (const InputImageRegionType &regionToProcess, const int, ThreadDataStruct threadData)
 ~PatchBasedDenoisingImageFilter ()
void ComputeDifferenceAndWeightedSquaredNorm (const DiffusionTensor3D< PixelValueType > &a, const DiffusionTensor3D< PixelValueType > &b, const RealArrayType &weight, RealType &diff, RealArrayType &norm)
template<class PixelT >
void ComputeDifferenceAndWeightedSquaredNorm (const PixelT &a, const PixelT &b, const RealArrayType &weight, RealType &diff, RealArrayType &norm)
RealType AddUpdate (const DiffusionTensor3D< RealValueType > &a, const RealType &b)
template<class RealT >
RealType AddUpdate (const RealT &a, const RealType &b)
- Protected Member Functions inherited from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >
virtual void GenerateData ()
 PatchBasedDenoisingBaseImageFilter ()
virtual void PreProcessInput ()
virtual void SetElapsedIterations (unsigned int _arg)
 ~PatchBasedDenoisingBaseImageFilter ()
virtual bool Halt ()
virtual bool ThreadedHalt (void *)
ComponentSpaceType DetermineComponentSpace (const RGBPixel< PixelValueType > &)
ComponentSpaceType DetermineComponentSpace (const RGBAPixel< PixelValueType > &)
ComponentSpaceType DetermineComponentSpace (const DiffusionTensor3D< PixelValueType > &)
template<class PixelT >
ComponentSpaceType DetermineComponentSpace (const PixelT &)
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 ImageToImageFilter ()
virtual void VerifyInputInformation ()
 ~ImageToImageFilter ()
void PushBackInput (const DataObject *input)
void PushFrontInput (const DataObject *input)
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AfterThreadedGenerateData ()
virtual void AllocateOutputs ()
virtual void BeforeThreadedGenerateData ()
 ImageSource ()
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion)
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
virtual ~ImageSource ()
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
virtual void AddOutput (DataObject *output)
bool AddRequiredInputName (const DataObjectIdentifierType &)
virtual void CacheInputReleaseDataFlags ()
virtual void GenerateOutputInformation ()
virtual void GenerateOutputRequestedRegion (DataObject *output)
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs ()
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs ()
bool IsIndexedName (const DataObjectIdentifierType &) const
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
DataObjectPointerArraySizeType MakeIndexFromName (const DataObjectIdentifierType &) const
DataObjectIdentifierType MakeNameFromIndex (DataObjectPointerArraySizeType) const
 ProcessObject ()
virtual void PropagateResetPipeline ()
virtual void ReleaseInputs ()
virtual void RemoveInput (const DataObjectIdentifierType &key)
virtual void RemoveInput (DataObjectPointerArraySizeType)
virtual void RemoveOutput (const DataObjectIdentifierType &key)
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
virtual void RestoreInputReleaseDataFlags ()
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
virtual void SetPrimaryInput (DataObject *input)
virtual void SetPrimaryOutput (DataObject *output)
void SetRequiredInputNames (const NameArray &)
virtual void VerifyPreconditions ()
 ~ProcessObject ()
DataObjectGetInput (const DataObjectIdentifierType &key)
const DataObjectGetInput (const DataObjectIdentifierType &key) const
DataObjectGetInput (DataObjectPointerArraySizeType)
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
DataObjectGetPrimaryInput ()
const DataObjectGetPrimaryInput () const
DataObjectGetOutput (const DataObjectIdentifierType &key)
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
DataObjectGetPrimaryOutput ()
const DataObjectGetPrimaryOutput () const
- Protected Member Functions inherited from itk::Object
 Object ()
bool PrintObservers (std::ostream &os, Indent indent) const
virtual void SetTimeStamp (const TimeStamp &time)
virtual ~Object ()
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 LightObject ()
virtual void PrintHeader (std::ostream &os, Indent indent) const
virtual void PrintTrailer (std::ostream &os, Indent indent) const
virtual ~LightObject ()

Protected Attributes

bool m_ComputeConditionalDerivatives
double m_FractionPixelsForSigmaUpdate
RealArrayType m_GaussianKernelSigma
PixelArrayType m_ImageMax
PixelArrayType m_ImageMin
RealArrayType m_IntensityRescaleInvFactor
double m_MinProbability
double m_MinSigma
RealType m_NoiseSigma
bool m_NoiseSigmaIsSet
RealType m_NoiseSigmaSquared
unsigned int m_NumIndependentComponents
unsigned int m_NumPixelComponents
BaseSamplerPointer m_Sampler
ListAdaptorType::Pointer m_SearchSpaceList
ShortArrayType m_SigmaConverged
double m_SigmaMultiplicationFactor
double m_SigmaUpdateConvergenceTolerance
unsigned int m_SigmaUpdateDecimationFactor
std::vector< ThreadDataStructm_ThreadData
unsigned int m_TotalNumberPixels
OutputImageType::Pointer m_UpdateBuffer
bool m_UseSmoothDiscPatchWeights
PixelType m_ZeroPixel
- Protected Attributes inherited from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >
bool m_AlwaysTreatComponentsAsEuclidean
ComponentSpaceType m_ComponentSpace
bool m_DoKernelBandwidthEstimation
unsigned int m_ElapsedIterations
double m_FidelityWeight
unsigned int m_KernelBandwidthUpdateFrequency
LoggerPointer m_Logger
bool m_ManualReinitialization
NoiseModelType m_NoiseModel
unsigned int m_NumberOfIterations
unsigned int m_PatchRadius
PatchWeightsType m_PatchWeights
double m_SmoothingWeight

Private Member Functions

RealType AddEuclideanUpdate (const RealType &a, const RealType &b)
RealType AddExponentialMapUpdate (const DiffusionTensor3D< RealValueType > &spdMatrix, const DiffusionTensor3D< RealValueType > &symMatrix)
void ComputeLogMapAndWeightedSquaredGeodesicDifference (const DiffusionTensor3D< PixelValueType > &spdMatrixA, const DiffusionTensor3D< PixelValueType > &spdMatrixB, const RealArrayType &weight, RealType &symMatrixLogMap, RealArrayType &geodesicDist)
void ComputeSignedEuclideanDifferenceAndWeightedSquaredNorm (const PixelType &a, const PixelType &b, const RealArrayType &weight, RealType &diff, RealArrayType &norm)
template<typename TInputImageType >
void DispatchedArrayMinMax (const TInputImageType *img)
template<typename TInputImageType >
void DispatchedMinMax (const TInputImageType *img)
template<typename TInputImageType >
void DispatchedRiemannianMinMax (const TInputImageType *img)
template<typename TInputImageType >
void DispatchedVectorMinMax (const TInputImageType *img)
void operator= (const Self &)
 PatchBasedDenoisingImageFilter (const Self &)
virtual void ResolveRiemannianMinMax ()
ThreadDataStruct ThreadedRiemannianMinMax (const InputImageRegionType &regionToProcess, const int, const InputImageType *img, ThreadDataStruct threadData)

Static Private Member Functions

static ITK_THREAD_RETURN_TYPE ApplyUpdateThreaderCallback (void *arg)
static ITK_THREAD_RETURN_TYPE ComputeImageUpdateThreaderCallback (void *arg)
static ITK_THREAD_RETURN_TYPE ComputeSigmaUpdateThreaderCallback (void *arg)
static ITK_THREAD_RETURN_TYPE RiemannianMinMaxThreaderCallback (void *arg)

Detailed Description

template<class TInputImage, class TOutputImage>
class itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >

Derived class implementing a specific patch-based denoising algorithm, as detailed below.

This class is derived from the base class PatchBasedDenoisingBaseImageFilter; please refer to the documentation of the base class first. This class implements a denoising filter that uses iterative non-local, or semi-local, weighted averaging of image patches for image denoising. The intensity at each pixel 'p' gets updated as a weighted average of intensities of a chosen subset of pixels from the image.

This class implements the denoising algorithm using a Gaussian kernel function for nonparametric density estimation. The class implements a scheme to automatically estimated the kernel bandwidth parameter (namely, sigma) using leave-one-out cross validation. It implements schemes for random sampling of patches non-locally (from the entire image) as well as semi-locally (from the spatial proximity of the pixel being denoised at the specific point in time). It implements a specific scheme for defining patch weights (mask) as described in Awate and Whitaker 2005 IEEE CVPR and 2006 IEEE TPAMI.

See also:
PatchBasedDenoisingBaseImageFilter

Definition at line 59 of file itkPatchBasedDenoisingImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage >
typedef BaseSamplerType::Pointer itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::BaseSamplerPointer

Definition at line 112 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef itk::Statistics::RegionConstrainedSubsampler< PatchSampleType, InputImageRegionType > itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::BaseSamplerType

Type definitions for delegate classes.

Definition at line 111 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef SmartPointer<const Self> itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ConstPointer
template<class TInputImage , class TOutputImage >
typedef Superclass::InputImagePatchIterator itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::InputImagePatchIterator
template<class TInputImage , class TOutputImage >
typedef ImageRegionConstIterator<InputImageType> itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::InputImageRegionConstIteratorType

Definition at line 89 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef InputImageType::RegionType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::InputImageRegionType

Type definition for the input image region and size type.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 85 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Superclass::InputImageType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::InputImageType

Type definition for the input image.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

Definition at line 74 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef BaseSamplerType::InstanceIdentifier itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::InstanceIdentifier

Definition at line 113 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Superclass::ListAdaptorType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ListAdaptorType

Type definition for patch weights type.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

Definition at line 103 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Superclass::OutputImagePointer itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::OutputImagePointer

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 68 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef ImageRegionIterator<OutputImageType> itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::OutputImageRegionIteratorType

Type definition for the input image region iterator

Definition at line 88 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Superclass::OutputImageType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::OutputImageType

Some convenient typedefs.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

Definition at line 78 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Superclass::PatchRadiusType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PatchRadiusType
template<class TInputImage , class TOutputImage >
typedef ListAdaptorType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PatchSampleType

Definition at line 106 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Superclass::PatchWeightsType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PatchWeightsType

This data structure type is used to store the weights (mask) for pixels in a patch in order to make the patch more isotropic and less rectangular.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

Definition at line 107 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Array<PixelValueType> itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PixelArrayType

Definition at line 98 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Superclass::PixelType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PixelType

Type definition for the input and output pixel types. Output pixel type will be used in computations.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

Definition at line 93 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Superclass::PixelValueType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PixelValueType
template<class TInputImage , class TOutputImage >
typedef SmartPointer<Self> itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::Pointer
template<class TInputImage , class TOutputImage >
typedef Array<RealValueType> itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::RealArrayType

Definition at line 99 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef NumericTraits< PixelType >::RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::RealType

Definition at line 96 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef NumericTraits< PixelValueType >::RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::RealValueType

Definition at line 97 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef PatchBasedDenoisingImageFilter itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::Self

Standard class typedefs.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

Definition at line 64 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Array<unsigned short> itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ShortArrayType

Definition at line 100 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef PatchBasedDenoisingBaseImageFilter<TInputImage, TOutputImage> itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PatchBasedDenoisingImageFilter ( )
protected
template<class TInputImage , class TOutputImage >
itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::~PatchBasedDenoisingImageFilter ( )
inlineprotected

Definition at line 187 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PatchBasedDenoisingImageFilter ( const Self )
private

Member Function Documentation

template<class TInputImage , class TOutputImage >
RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::AddEuclideanUpdate ( const RealType a,
const RealType b 
)
private
template<class TInputImage , class TOutputImage >
RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::AddExponentialMapUpdate ( const DiffusionTensor3D< RealValueType > &  spdMatrix,
const DiffusionTensor3D< RealValueType > &  symMatrix 
)
private

Returns the Exp map

template<class TInputImage , class TOutputImage >
RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::AddUpdate ( const DiffusionTensor3D< RealValueType > &  a,
const RealType b 
)
inlineprotected

Update a by adding b. In Riemannian space, b is in the tangent space of a.

Definition at line 310 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
template<class RealT >
RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::AddUpdate ( const RealT &  a,
const RealType b 
)
inlineprotected

Update a by adding b. In Riemannian space, b is in the tangent space of a.

Definition at line 323 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::AllocateUpdateBuffer ( )
protectedvirtual

Allocate memory for a temporary update container in the subclass

Implements itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ApplyUpdate ( )
protectedvirtual

Perform one iteration of image denoising.

Implements itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
static ITK_THREAD_RETURN_TYPE itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ApplyUpdateThreaderCallback ( void *  arg)
staticprivate

This callback method uses ImageSource::SplitRequestedRegion to acquire a region which it then passes to ThreadedApplyUpdate for processing.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeConditionalDerivativesOff ( )
virtual

Set/Get flag indicating whether conditional derivatives should be used estimating sigma.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeConditionalDerivativesOn ( )
virtual

Set/Get flag indicating whether conditional derivatives should be used estimating sigma.

template<class TInputImage , class TOutputImage >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeDifferenceAndWeightedSquaredNorm ( const DiffusionTensor3D< PixelValueType > &  a,
const DiffusionTensor3D< PixelValueType > &  b,
const RealArrayType weight,
RealType diff,
RealArrayType norm 
)
inlineprotected

Compute the signed difference a-b and the weighted squared distance between a and b. Do the computation in either Euclidean or Riemannian space depending on pixel type.

Definition at line 283 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
template<class PixelT >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeDifferenceAndWeightedSquaredNorm ( const PixelT &  a,
const PixelT &  b,
const RealArrayType weight,
RealType diff,
RealArrayType norm 
)
inlineprotected

Compute the signed difference a-b and the weighted squared distance between a and b. Do the computation in either Euclidean or Riemannian space depending on pixel type.

Definition at line 298 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
virtual RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeGradientJointEntropy ( InstanceIdentifier  id,
typename ListAdaptorType::Pointer inList,
BaseSamplerPointer sampler 
)
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeImageUpdate ( )
protectedvirtual

Perform one iteration of image denoising.

Implements itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
static ITK_THREAD_RETURN_TYPE itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeImageUpdateThreaderCallback ( void *  arg)
staticprivate

This callback method uses ImageSource::SplitRequestedRegion to acquire a region which it then passes to ComputeImageUpdate for processing.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeKernelBandwidthUpdate ( )
protectedvirtual

Automatically estimate kernel bandwidth from the image data.

Implements itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeLogMapAndWeightedSquaredGeodesicDifference ( const DiffusionTensor3D< PixelValueType > &  spdMatrixA,
const DiffusionTensor3D< PixelValueType > &  spdMatrixB,
const RealArrayType weight,
RealType symMatrixLogMap,
RealArrayType geodesicDist 
)
private

Returns the Log map in the tangent space of spdMatrixA.

template<class TInputImage , class TOutputImage >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeMinMax ( const Image< DiffusionTensor3D< PixelValueType >, ImageDimension > *  img)
inlineprotected

Compute the Minimum and Maximum pixel in the image for each independent component

Definition at line 249 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
template<typename TImageType >
EnableIfC< IsSame<typename TImageType::PixelType, typename NumericTraits<typename TImageType::PixelType>::ValueType>::Value >::Type itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeMinMax ( const TImageType *  img)
inlineprotected

Definition at line 265 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
template<typename TImageType >
DisableIfC< IsSame<typename TImageType::PixelType, typename NumericTraits<typename TImageType::PixelType>::ValueType>::Value >::Type itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeMinMax ( const TImageType *  img)
inlineprotected

Definition at line 273 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
static ITK_THREAD_RETURN_TYPE itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeSigmaUpdateThreaderCallback ( void *  arg)
staticprivate

This callback method uses ImageSource::SplitRequestedRegion to acquire an output region that it passes to ComputeSigma for processing.

template<class TInputImage , class TOutputImage >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ComputeSignedEuclideanDifferenceAndWeightedSquaredNorm ( const PixelType a,
const PixelType b,
const RealArrayType weight,
RealType diff,
RealArrayType norm 
)
private
template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::CopyInputToOutput ( )
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual::itk::LightObject::Pointer itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::CreateAnother ( void  ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Object.

template<class TInputImage , class TOutputImage >
template<typename TInputImageType >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::DispatchedArrayMinMax ( const TInputImageType *  img)
private
template<class TInputImage , class TOutputImage >
template<typename TInputImageType >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::DispatchedMinMax ( const TInputImageType *  img)
private
template<class TInputImage , class TOutputImage >
template<typename TInputImageType >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::DispatchedRiemannianMinMax ( const TInputImageType *  img)
private
template<class TInputImage , class TOutputImage >
template<typename TInputImageType >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::DispatchedVectorMinMax ( const TInputImageType *  img)
private
template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::EnforceConstraints ( )
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( )
protectedvirtual

What is the input requested region that is required to produce the output requested region? The base assumption for image processing filters is that the input requested region can be set to match the output requested region. If a filter requires more input (for instance a filter that uses neighborhoods needs more input than output to avoid introducing artificial boundary conditions) or less input (for instance a magnify filter) will have to override this method. In doing so, it should call its superclass' implementation as its first step. Note that imaging filters operate differently than the classes to this point in the class hierarchy. Up till now, the base assumption has been that the largest possible region will be requested of the input.

This implementation of GenerateInputRequestedRegion() only processes the inputs that are a subclass of the ImageBase<InputImageDimension>. If an input is another type of DataObject (including an Image of a different dimension), they are skipped by this method. The subclasses of ImageToImageFilter are responsible for providing an implementation of GenerateInputRequestedRegion() when there are multiple inputs of different types.

See also:
ProcessObject::GenerateInputRequestedRegion(), ImageSource::GenerateInputRequestedRegion()

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
template<typename T >
EnableIfC< IsSame<T, typename NumericTraits<T>::ValueType>::Value, T >::Type itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetComponent ( const T  pix,
unsigned  int 
) const
inlineprotected

A method to generically get a component.

The same function name can be used to generically access for scalars and array-like types. For scalar types the idx parameter is ignored.

Definition at line 207 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
template<typename T >
DisableIfC< IsSame<T, typename NumericTraits<T>::ValueType>::Value, typename NumericTraits<T>::ValueType>::Type itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetComponent ( const T &  pix,
unsigned int  idx 
) const
inlineprotected

Definition at line 222 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
virtual bool itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetComputeConditionalDerivatives ( ) const
virtual

Set/Get flag indicating whether conditional derivatives should be used estimating sigma.

template<class TInputImage , class TOutputImage >
virtual const double& itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetFractionPixelsForSigmaUpdate ( )
virtual

Set/Get the fraction of the image to use for sigma estimation. To reduce the computational burden for computing sigma, a small random fraction of the image pixels can be used.

template<class TInputImage , class TOutputImage >
virtual RealArrayType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetGaussianKernelSigma ( ) const
virtual

Set/Get initial sigma estimate. To prevent the class from automatically modifying this estimate, set DoKernelBandwidthEstimation to false in the base class.

template<class TInputImage , class TOutputImage >
virtual const char* itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetNoiseSigma ( ) const
virtual

Set/Get the noise sigma. Used by the noise model where appropriate, defaults to 5% of the image intensity range

template<class TInputImage , class TOutputImage >
virtual BaseSamplerType* itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetSampler ( )
virtual

Set/Get the class used for creating a subsample of patches.

template<class TInputImage , class TOutputImage >
virtual const double& itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetSigmaMultiplicationFactor ( )
virtual

Set/Get the sigma multiplication factor used to modify the automatically-estimated sigma. At times, it may be desirable to modify the value of the automatically-estimated sigma. Typically, this number isn't very far from 1. Note: This is used only when DoKernelBandwidthEstimation is True/On.

template<class TInputImage , class TOutputImage >
virtual ThreadDataStruct itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetThreadData ( int  threadId)
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual bool itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::GetUseSmoothDiscPatchWeights ( ) const
virtual

Set/Get flag indicating whether smooth-disc patch weights should be used. If this flag is true, the smooth-disc patch weights will override any weights provided via the SetPatchWeights method.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::Initialize ( void  )
protectedvirtual

Allocate memory and initialize patch weights.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::InitializeIteration ( )
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::InitializeKernelSigma ( )
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::InitializePatchWeights ( )
protectedvirtual

Allocate memory and initialize patch weights.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::InitializePatchWeightsSmoothDisc ( )
protectedvirtual
template<class TInputImage , class TOutputImage >
static Pointer itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TInputImage , class TOutputImage >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::operator= ( const Self )
private

PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PostProcessOutput ( )
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ResolveRiemannianMinMax ( )
privatevirtual
template<class TInputImage , class TOutputImage >
virtual RealArrayType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ResolveSigmaUpdate ( )
protectedvirtual
template<class TInputImage , class TOutputImage >
static ITK_THREAD_RETURN_TYPE itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::RiemannianMinMaxThreaderCallback ( void *  arg)
staticprivate

This callback method uses ImageSource::SplitRequestedRegion to acquire a region which it then passes to ThreadedRiemannianMinMax for processing.

template<class TInputImage , class TOutputImage >
template<typename T >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetComponent ( T &  pix,
unsigned  int,
typename EnableIfC< IsSame< T, typename NumericTraits< T >::ValueType >::Value, RealValueType >::Type  val 
) const
inlineprotected

A method to generically set a component.

Definition at line 231 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
template<typename T >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetComponent ( T &  pix,
unsigned int  idx,
typename DisableIfC< IsSame< T, typename NumericTraits< T >::ValueType >::Value, RealValueType >::Type  val 
) const
inlineprotected

Definition at line 239 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetComputeConditionalDerivatives ( bool  _arg)
virtual

Set/Get flag indicating whether conditional derivatives should be used estimating sigma.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetFractionPixelsForSigmaUpdate ( double  _arg)
virtual

Set/Get the fraction of the image to use for sigma estimation. To reduce the computational burden for computing sigma, a small random fraction of the image pixels can be used.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetGaussianKernelSigma ( RealArrayType  _arg)
virtual

Set/Get initial sigma estimate. To prevent the class from automatically modifying this estimate, set DoKernelBandwidthEstimation to false in the base class.

template<class TInputImage , class TOutputImage >
void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetNoiseSigma ( const RealType sigma)

Set/Get the noise sigma. Used by the noise model where appropriate, defaults to 5% of the image intensity range

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetSampler ( BaseSamplerType _arg)
virtual

Set/Get the class used for creating a subsample of patches.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetSigmaMultiplicationFactor ( double  _arg)
virtual

Set/Get the sigma multiplication factor used to modify the automatically-estimated sigma. At times, it may be desirable to modify the value of the automatically-estimated sigma. Typically, this number isn't very far from 1. Note: This is used only when DoKernelBandwidthEstimation is True/On.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetThreadData ( int  threadId,
const ThreadDataStruct data 
)
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::SetUseSmoothDiscPatchWeights ( bool  _arg)
virtual

Set/Get flag indicating whether smooth-disc patch weights should be used. If this flag is true, the smooth-disc patch weights will override any weights provided via the SetPatchWeights method.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ThreadedApplyUpdate ( const InputImageRegionType regionToProcess,
const int   
)
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual ThreadDataStruct itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ThreadedComputeImageUpdate ( const InputImageRegionType regionToProcess,
const int  threadId,
ThreadDataStruct  threadData 
)
protectedvirtual
template<class TInputImage , class TOutputImage >
virtual ThreadDataStruct itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ThreadedComputeSigmaUpdate ( const InputImageRegionType regionToProcess,
const int  ,
ThreadDataStruct  threadData 
)
protectedvirtual
template<class TInputImage , class TOutputImage >
ThreadDataStruct itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ThreadedRiemannianMinMax ( const InputImageRegionType regionToProcess,
const int  ,
const InputImageType img,
ThreadDataStruct  threadData 
)
private
template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::UseSmoothDiscPatchWeightsOff ( )
virtual

Set/Get flag indicating whether smooth-disc patch weights should be used. If this flag is true, the smooth-disc patch weights will override any weights provided via the SetPatchWeights method.

template<class TInputImage , class TOutputImage >
virtual void itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::UseSmoothDiscPatchWeightsOn ( )
virtual

Set/Get flag indicating whether smooth-disc patch weights should be used. If this flag is true, the smooth-disc patch weights will override any weights provided via the SetPatchWeights method.


Member Data Documentation

template<class TInputImage , class TOutputImage >
const unsigned int itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::ImageDimension = Superclass::ImageDimension
static

Image dimension, assumed to be the same for input and output data

Reimplemented from itk::PatchBasedDenoisingBaseImageFilter< TInputImage, TOutputImage >.

Definition at line 82 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
bool itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_ComputeConditionalDerivatives
protected

Definition at line 385 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
double itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_FractionPixelsForSigmaUpdate
protected

Definition at line 384 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
RealArrayType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_GaussianKernelSigma
protected

Definition at line 379 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
PixelArrayType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_ImageMax
protected

Definition at line 383 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
PixelArrayType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_ImageMin
protected

Definition at line 382 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
RealArrayType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_IntensityRescaleInvFactor
protected

Definition at line 380 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
double itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_MinProbability
protected

Definition at line 387 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
double itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_MinSigma
protected

Definition at line 386 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_NoiseSigma
protected

Definition at line 393 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
bool itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_NoiseSigmaIsSet
protected

Definition at line 395 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
RealType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_NoiseSigmaSquared
protected

Definition at line 394 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned int itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_NumIndependentComponents
protected

Definition at line 374 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned int itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_NumPixelComponents
protected

Definition at line 373 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
BaseSamplerPointer itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_Sampler
protected

Definition at line 397 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
ListAdaptorType::Pointer itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_SearchSpaceList
protected

Definition at line 398 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
ShortArrayType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_SigmaConverged
protected

Definition at line 390 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
double itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_SigmaMultiplicationFactor
protected

Definition at line 391 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
double itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_SigmaUpdateConvergenceTolerance
protected

Definition at line 389 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned int itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_SigmaUpdateDecimationFactor
protected

Definition at line 388 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
std::vector<ThreadDataStruct> itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_ThreadData
protected

Definition at line 368 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned int itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_TotalNumberPixels
protected

Definition at line 375 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
OutputImageType::Pointer itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_UpdateBuffer
protected

The buffer that holds the updates for an iteration of the algorithm.

Definition at line 371 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
bool itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_UseSmoothDiscPatchWeights
protected

Definition at line 377 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
PixelType itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::m_ZeroPixel
protected

Definition at line 381 of file itkPatchBasedDenoisingImageFilter.h.

template<class TInputImage , class TOutputImage >
const unsigned int itk::PatchBasedDenoisingImageFilter< TInputImage, TOutputImage >::MaxSigmaUpdateIterations = 20
static

Maximum number of Newton-Raphson iterations for sigma update.

Definition at line 161 of file itkPatchBasedDenoisingImageFilter.h.


The documentation for this class was generated from the following file: