#include <itkMinMaxCurvatureFlowImageFilter.h>
Denoise an image using min/max curvature flow.
MinMaxCurvatureFlowImageFilter implements a curvature driven image denoising algorithm [97]. Iso-brightness contours in the grayscale input image are viewed as a level set. The level set is then evolved using a curvature-based speed function:
\[ I_t = F_{\mbox{minmax}} |\nabla I| \]
where \( F_{\mbox{minmax}} = \max(\kappa,0) \) if \( \mbox{Avg}_{\mbox{stencil}}(x) \) is less than or equal to \( T_{threshold} \) and \( \min(\kappa,0) \), otherwise. \( \kappa \) is the mean curvature of the iso-brightness contour at point \( x \).
In min/max curvature flow, movement is turned on or off depending on the scale of the noise one wants to remove. Switching depends on the average image value of a region of radius \( R \) around each point. The choice of \( R \), the stencil radius, governs the scale of the noise to be removed.
The threshold value \( T_{threshold} \) is the average intensity obtained in the direction perpendicular to the gradient at point \( x \) at the extrema of the local neighborhood.
This filter make use of the multi-threaded finite difference solver hierarchy. Updates are computed using a MinMaxCurvatureFlowFunction object. A zero flux Neumann boundary condition is used when computing derivatives near the data boundary.
Definition at line 79 of file itkMinMaxCurvatureFlowImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static Pointer | New () |
![]() | |
static double | GetGlobalDefaultCoordinateTolerance () |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static void | SetGlobalDefaultDirectionTolerance (double) |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
![]() | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
![]() | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
![]() | |
static constexpr unsigned int | ImageDimension = OutputImageType::ImageDimension |
![]() | |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | OutputImageDimension |
static constexpr unsigned int | OutputImageDimension |
![]() | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
RadiusValueType | m_StencilRadius {} |
using itk::MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 89 of file itkMinMaxCurvatureFlowImageFilter.h.
using itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >::FiniteDifferenceFunctionType |
The value type of the time step. This is distinct from PixelType because PixelType may often be a vector value, while the TimeStep is a scalar value.
Definition at line 118 of file itkFiniteDifferenceImageFilter.h.
using itk::MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage >::MinMaxCurvatureFlowFunctionType = MinMaxCurvatureFlowFunction<OutputImageType> |
MinMaxCurvatureFlowFunction type.
Definition at line 102 of file itkMinMaxCurvatureFlowImageFilter.h.
using itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >::OutputImageType |
Definition at line 114 of file itkFiniteDifferenceImageFilter.h.
using itk::MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 88 of file itkMinMaxCurvatureFlowImageFilter.h.
using itk::MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage >::RadiusType = typename FiniteDifferenceFunctionType::RadiusType |
Typedef support for the neighbour radius.
Definition at line 109 of file itkMinMaxCurvatureFlowImageFilter.h.
using itk::MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage >::RadiusValueType = typename RadiusType::SizeValueType |
Definition at line 110 of file itkMinMaxCurvatureFlowImageFilter.h.
using itk::MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage >::Self = MinMaxCurvatureFlowImageFilter |
Standard class type aliases.
Definition at line 86 of file itkMinMaxCurvatureFlowImageFilter.h.
using itk::MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage >::Superclass = CurvatureFlowImageFilter<TInputImage, TOutputImage> |
Definition at line 87 of file itkMinMaxCurvatureFlowImageFilter.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
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::CurvatureFlowImageFilter< TInputImage, TOutputImage >.
|
overridevirtual |
Reimplemented from itk::CurvatureFlowImageFilter< TInputImage, TOutputImage >.
References MinMaxCurvatureFlowImageFilter().
|
virtual |
Set/Get the stencil radius.
|
overrideprotectedvirtual |
Initialize the state of filter and equation before each iteration. Progress feedback is implemented as part of this method.
Reimplemented from itk::CurvatureFlowImageFilter< TInputImage, TOutputImage >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
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::CurvatureFlowImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get the stencil radius.
|
staticconstexpr |
Dimensionality of input and output data is assumed to be the same. It is inherited from the superclass.
Definition at line 106 of file itkMinMaxCurvatureFlowImageFilter.h.
|
private |
Definition at line 141 of file itkMinMaxCurvatureFlowImageFilter.h.