template<typename TImage, typename TScalar = typename NumericTraits<typename TImage::PixelType>::RealType>
class itk::CoherenceEnhancingDiffusionImageFilter< TImage, TScalar >
Coherence enhancing diffusion and edge enhancing diffusion.
Implementation of Coherence Enhancing Diffusion (CED), and Edge Enhancing Diffusion (EED), as described by Weickert.
CED heuristically smoothes everywhere except accross image contours, while EED smoothes nowhere but tangentially to image contours.
The non-linear diffusion tensor is defined in terms of the structure tensor.
Denote by \(\mu_i\) the structure tensor eigenvalues, at a given point \(x\), with \(0\leq i < d\). Let also \(\mu_{\rm min}\) and \(\mu_{\rm max}\), be the smallest and largest eigenvalues respectively. The diffusion tensor is defined by the same eigenvectors, but with modified with eigenvalues \(\lambda_i\).
Edge Enhancing Diffusion:
\(\lambda_i := g(\mu_i - \mu_{\rm min})\), where \(g(s) = 1 - (1-\alpha)*exp(-(\lambda/s)^m)\)
Note the limit values \(g(0) = 1\), \(g(\infty) = \alpha\).
Coherence Enhancing Diffusion:
\(\lambda_i := g(\mu_{\rm max} - \mu_i)\), where \(g(s) = \alpha + (1-\alpha)*exp(-(\lambda/s)^m)\)
Note the limit values \(g(0) = \alpha\), \(g(\infty) = 1\).
Definition at line 65 of file itkCoherenceEnhancingDiffusionImageFilter.h.
|
| using | ConstPointer = SmartPointer<const Self> |
| |
| using | EigenValuesArrayType = typename Superclass::EigenValuesArrayType |
| |
| enum | EnhancementType {
CED
,
cCED
,
EED
,
cEED
,
Isotropic
} |
| |
| using | InputImageDimensionType = typename Superclass::InputImageType::ImageDimensionType |
| |
| using | Pointer = SmartPointer<Self> |
| |
| using | ScalarType = typename Superclass::ScalarType |
| |
| using | Self = CoherenceEnhancingDiffusionImageFilter |
| |
| using | Superclass = AnisotropicDiffusionLBRImageFilter<TImage, TScalar> |
| |
| using | ConstPointer = SmartPointer<const Self> |
| |
| using | EffectiveTimesAndIterationsType = std::vector<std::pair<ScalarType, int>> |
| |
| using | EigenValuesArrayType = typename TensorType::EigenValuesArrayType |
| |
| using | ImageDimensionType = typename ImageType::ImageDimensionType |
| |
| using | ImageType = TImage |
| |
| using | LinearDiffusionFilterType = LinearAnisotropicDiffusionLBRImageFilter<ImageType, ScalarType> |
| |
| using | PixelType = typename ImageType::PixelType |
| |
| using | Pointer = SmartPointer<Self> |
| |
| using | ScalarType = TScalar |
| |
| using | Self = AnisotropicDiffusionLBRImageFilter |
| |
| using | StructureTensorFilterType = GradientStructureTensorImageFilter<ImageType, TensorImageType> |
| |
| using | Superclass = ImageToImageFilter<TImage, TImage> |
| |
| using | TensorImageType = Image<TensorType, ImageDimension> |
| |
| using | TensorType = SymmetricSecondRankTensor<ScalarType, ImageDimension> |
| |
| using | ConstPointer |
| |
| using | InputImageConstPointer |
| |
| using | InputImagePixelType |
| |
| using | InputImagePointer |
| |
| using | InputImageRegionType |
| |
| using | InputImageType |
| |
| typedef typename OutputImageType::PixelType | OutputImagePixelType |
| |
| using | OutputImagePixelType |
| |
| typedef typename OutputImageType::RegionType | OutputImageRegionType |
| |
| using | OutputImageRegionType |
| |
| using | Pointer |
| |
| using | Self |
| |
| using | Superclass |
| |
| using | ConstPointer |
| |
| using | DataObjectIdentifierType |
| |
| using | DataObjectPointer |
| |
| using | DataObjectPointerArraySizeType |
| |
| using | OutputImagePixelType |
| |
| using | OutputImagePointer |
| |
| using | OutputImageRegionType |
| |
| using | OutputImageType |
| |
| using | Pointer |
| |
| using | Self |
| |
| using | Superclass |
| |
| using | ConstPointer = SmartPointer<const Self> |
| |
| using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
| |
| using | DataObjectPointer = DataObject::Pointer |
| |
| using | DataObjectPointerArray = std::vector<DataObjectPointer> |
| |
| using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
| |
| using | NameArray = std::vector<DataObjectIdentifierType> |
| |
| using | Pointer = SmartPointer<Self> |
| |
| using | Self = ProcessObject |
| |
| using | Superclass = Object |
| |
| using | ConstPointer = SmartPointer<const Self> |
| |
| using | Pointer = SmartPointer<Self> |
| |
| using | Self = Object |
| |
| using | Superclass = LightObject |
| |
| using | ConstPointer = SmartPointer<const Self> |
| |
| using | Pointer = SmartPointer<Self> |
| |
| using | Self = LightObject |
| |
|
| | CoherenceEnhancingDiffusionImageFilter () |
| |
| ScalarType | g_CED (ScalarType s) const |
| |
| ScalarType | g_EED (ScalarType s) const |
| |
| | ~CoherenceEnhancingDiffusionImageFilter () override=default |
| |
| | AnisotropicDiffusionLBRImageFilter () |
| |
| virtual void | ComputeDiffusionTensors (ImageType *) |
| |
| void | GenerateData () override |
| |
| | ~AnisotropicDiffusionLBRImageFilter () override=default |
| |
| virtual void | CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion) |
| |
| virtual void | CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion) |
| |
| virtual void | CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion) |
| |
| virtual void | CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion) |
| |
| void | GenerateInputRequestedRegion () override |
| |
| void | GenerateInputRequestedRegion () override |
| |
| | ImageToImageFilter () |
| |
| | ImageToImageFilter () |
| |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| |
| void | VerifyInputInformation () const override |
| |
| void | VerifyInputInformation () const override |
| |
| | ~ImageToImageFilter () override=default |
| |
| | ~ImageToImageFilter () override=default |
| |
| virtual void | AfterThreadedGenerateData () |
| |
| virtual void | AfterThreadedGenerateData () |
| |
| virtual void | AllocateOutputs () |
| |
| virtual void | AllocateOutputs () |
| |
| virtual void | BeforeThreadedGenerateData () |
| |
| virtual void | BeforeThreadedGenerateData () |
| |
| void | ClassicMultiThread (ThreadFunctionType callbackFunction) |
| |
| void | ClassicMultiThread (ThreadFunctionType callbackFunction) |
| |
| void | GenerateData () override |
| |
| void | GenerateData () override |
| |
| virtual const ImageRegionSplitterBase * | GetImageRegionSplitter () const |
| |
| virtual const ImageRegionSplitterBase * | GetImageRegionSplitter () const |
| |
| | ImageSource () |
| |
| | ImageSource () |
| |
| virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion) |
| |
| virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion) |
| |
| | ~ImageSource () override=default |
| |
| | ~ImageSource () override=default |
| |
| virtual void | ThreadedGenerateData (const OutputImageRegionType ®ion, ThreadIdType threadId) |
| |
| virtual void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) |
| |
| virtual void | ThreadedGenerateData (const OutputImageRegionType ®ion, ThreadIdType threadId) |
| |
| virtual void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) |
| |
| virtual bool | GetDynamicMultiThreading () const |
| |
| virtual void | SetDynamicMultiThreading (bool _arg) |
| |
| virtual void | DynamicMultiThreadingOn () |
| |
| virtual void | DynamicMultiThreadingOff () |
| |
| virtual bool | GetDynamicMultiThreading () const |
| |
| virtual void | SetDynamicMultiThreading (bool _arg) |
| |
| virtual void | DynamicMultiThreadingOn () |
| |
| virtual void | DynamicMultiThreadingOff () |
| |
| virtual void | AddInput (DataObject *input) |
| |
| void | AddOptionalInputName (const DataObjectIdentifierType &) |
| |
| void | AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
| |
| virtual void | AddOutput (DataObject *output) |
| |
| bool | AddRequiredInputName (const DataObjectIdentifierType &) |
| |
| bool | AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
| |
| virtual void | CacheInputReleaseDataFlags () |
| |
| virtual void | GenerateOutputInformation () |
| |
| virtual void | GenerateOutputRequestedRegion (DataObject *output) |
| |
| DataObject * | GetInput (const DataObjectIdentifierType &key) |
| |
| const DataObject * | GetInput (const DataObjectIdentifierType &key) const |
| |
| virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredInputs () const |
| |
| virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredOutputs () const |
| |
| bool | IsIndexedInputName (const DataObjectIdentifierType &) const |
| |
| bool | IsIndexedOutputName (const DataObjectIdentifierType &) const |
| |
| bool | IsRequiredInputName (const DataObjectIdentifierType &) const |
| |
| DataObjectPointerArraySizeType | MakeIndexFromInputName (const DataObjectIdentifierType &name) const |
| |
| DataObjectPointerArraySizeType | MakeIndexFromOutputName (const DataObjectIdentifierType &name) const |
| |
| DataObjectIdentifierType | MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const |
| |
| DataObjectIdentifierType | MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const |
| |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| |
| | ProcessObject () |
| |
| virtual void | PropagateResetPipeline () |
| |
| virtual void | PushBackInput (const DataObject *input) |
| |
| virtual void | PushFrontInput (const DataObject *input) |
| |
| 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 idx, DataObject *input) |
| |
| virtual void | SetNthOutput (DataObjectPointerArraySizeType idx, DataObject *output) |
| |
| void | SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num) |
| |
| void | SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num) |
| |
| virtual void | SetNumberOfRequiredInputs (DataObjectPointerArraySizeType) |
| |
| virtual void | SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg) |
| |
| virtual void | SetOutput (const DataObjectIdentifierType &name, DataObject *output) |
| |
| virtual void | SetPrimaryInput (DataObject *object) |
| |
| virtual void | SetPrimaryOutput (DataObject *object) |
| |
| void | SetRequiredInputNames (const NameArray &) |
| |
| virtual void | VerifyPreconditions () const |
| |
| | ~ProcessObject () override |
| |
| DataObject * | GetInput (DataObjectPointerArraySizeType idx) |
| |
| const DataObject * | GetInput (DataObjectPointerArraySizeType idx) const |
| |
| DataObject * | GetPrimaryInput () |
| |
| const DataObject * | GetPrimaryInput () const |
| |
| virtual void | SetPrimaryInputName (const DataObjectIdentifierType &key) |
| |
| virtual const char * | GetPrimaryInputName () const |
| |
| DataObject * | GetOutput (const DataObjectIdentifierType &key) |
| |
| const DataObject * | GetOutput (const DataObjectIdentifierType &key) const |
| |
| virtual void | SetPrimaryOutputName (const DataObjectIdentifierType &key) |
| |
| virtual const char * | GetPrimaryOutputName () const |
| |
| DataObject * | GetOutput (DataObjectPointerArraySizeType i) |
| |
| const DataObject * | GetOutput (DataObjectPointerArraySizeType i) const |
| |
| DataObject * | GetPrimaryOutput () |
| |
| const DataObject * | GetPrimaryOutput () const |
| |
| virtual bool | GetThreaderUpdateProgress () const |
| |
| virtual void | ThreaderUpdateProgressOn () |
| |
| virtual void | ThreaderUpdateProgressOff () |
| |
| virtual void | SetThreaderUpdateProgress (bool arg) |
| |
| | Object () |
| |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| |
| virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
| |
| | ~Object () override |
| |
| 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 () |
| |