Class CurvatureFlowImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.CurvatureFlowImageFilter
Denoise an image using curvature driven flow.
CurvatureFlowImageFilter implements a curvature driven image denoising algorithm. 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 = \\kappa |\\nabla I| \\] where $ \\kappa $ is the curvature.
The advantage of this approach is that sharp boundaries are preserved
with smoothing occurring only within a region. However, it should be
noted that continuous application of this scheme will result in the
eventual removal of all information as each contour shrinks to zero
and disappear.
Note that unlike level set segmentation algorithms, the image to be
denoised is already the level set and can be set directly as the input
using the SetInput() method.
This filter has two parameters: the number of update iterations to be
performed and the timestep between each update.
The timestep should be "small enough" to ensure numerical stability.
Stability is guarantee when the timestep meets the CFL (Courant-
Friedrichs-Levy) condition. Broadly speaking, this condition ensures
that each contour does not move more than one grid position at each
timestep. In the literature, the timestep is typically user specified
and have to manually tuned to the application.
This filter make use of the multi-threaded finite difference solver
hierarchy. Updates are computed using a CurvatureFlowFunction object. A zero flux Neumann boundary condition when computing
derivatives near the data boundary.
This filter may be streamed. To support streaming this filter produces
a padded output which takes into account edge effects. The size of the
padding is m_NumberOfIterations on each edge. Users of this filter
should only make use of the center valid central region.
WARNING:
This filter assumes that the input and output types have the same
dimensions. This filter also requires that the output image pixels are
of a floating point type. This filter works for any dimensional
images.
 Reference: "Level Set Methods and Fast Marching Methods", J.A.
Sethian, Cambridge Press, Chapter 16, Second edition, 1999.
See:
 DenseFiniteDifferenceImageFilter
 CurvatureFlowFunction
 MinMaxCurvatureFlowImageFilter
 BinaryMinMaxCurvatureFlowImageFilter
 itk::simple::CurvatureFlow for the procedural interface
 itk::CurvatureFlowImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkCurvatureFlowImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::CurvatureFlowImageFilter::CurvatureFlowImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedCurvatureFlowImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::CurvatureFlowImageFilter::~CurvatureFlowImageFilter() DestructorImage itk::simple::CurvatureFlowImageFilter::Execute(Image &&image1) Execute the filter on the input imageprotected voidfinalize()protected static longgetName()std::string itk::simple::CurvatureFlowImageFilter::GetName() const Name of this classlonguint32_t itk::simple::CurvatureFlowImageFilter::GetNumberOfIterations() constdoubledouble itk::simple::CurvatureFlowImageFilter::GetTimeStep() const Get the timestep parameter.voidsetNumberOfIterations(long NumberOfIterations) Self& itk::simple::CurvatureFlowImageFilter::SetNumberOfIterations(uint32_t NumberOfIterations)voidsetTimeStep(double TimeStep) Self& itk::simple::CurvatureFlowImageFilter::SetTimeStep(double TimeStep) Set the timestep parameter.protected static longtoString()std::string itk::simple::CurvatureFlowImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFiltergetCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObjectabort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
- 
Constructor Details- 
CurvatureFlowImageFilterprotected CurvatureFlowImageFilter(long cPtr, boolean cMemoryOwn) 
- 
CurvatureFlowImageFilterpublic CurvatureFlowImageFilter()itk::simple::CurvatureFlowImageFilter::CurvatureFlowImageFilter() Default Constructor that takes no arguments and initializes default parameters
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ImageFilter
 
- 
deletepublic void delete()virtual itk::simple::CurvatureFlowImageFilter::~CurvatureFlowImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setTimeSteppublic void setTimeStep(double TimeStep) Self& itk::simple::CurvatureFlowImageFilter::SetTimeStep(double TimeStep) Set the timestep parameter.
- 
getTimeSteppublic double getTimeStep()double itk::simple::CurvatureFlowImageFilter::GetTimeStep() const Get the timestep parameter.
- 
setNumberOfIterationspublic void setNumberOfIterations(long NumberOfIterations) Self& itk::simple::CurvatureFlowImageFilter::SetNumberOfIterations(uint32_t NumberOfIterations)
- 
getNumberOfIterationspublic long getNumberOfIterations()uint32_t itk::simple::CurvatureFlowImageFilter::GetNumberOfIterations() const
- 
getNamestd::string itk::simple::CurvatureFlowImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::CurvatureFlowImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-