|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Performs a single iteration of total variation denoising. More...
#include <itkTotalVariationSingleIterationImageFilter.h>


Public Types | |
| typedef TInputImage | InputImageType |
| typedef TOutputImage | OutputImageType |
| typedef itk::Image< float, InputImageDimension > | LocalVariationImageType |
| typedef TotalVariationSingleIterationImageFilter | Self |
| typedef ImageToImageFilter< InputImageType, OutputImageType > | Superclass |
| typedef SmartPointer< Self > | Pointer |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef InputImageType::PixelType | InputPixelType |
| typedef OutputImageType::PixelType | OutputPixelType |
| typedef InputImageType::RegionType | InputImageRegionType |
| typedef OutputImageType::RegionType | OutputImageRegionType |
| typedef InputImageType::SizeType | InputSizeType |
Public Member Functions | |
| itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension) | |
| itkStaticConstMacro (OutputImageDimension, unsigned int, TOutputImage::ImageDimension) | |
| Pointer | Clone () const |
| virtual const char * | GetClassName () const |
| void | GenerateInputRequestedRegion () override |
| Generates the input requested region, padded by a radius of 1. More... | |
| virtual void | SetLambda (double _arg) |
| Set/Get the regularization parameter Lambda. More... | |
| virtual double | GetLambda () |
| void | SetOriginalImage (InputImageType *in) |
| Set the original (undenoised) image used as a reference for the data fidelity term. More... | |
| InputImageType::Pointer | GetOriginialImage () |
| Get the original (undenoised) image. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| TotalVariationSingleIterationImageFilter () | |
| ~TotalVariationSingleIterationImageFilter () override | |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override |
| void | BeforeThreadedGenerateData () override |
Protected Attributes | |
| LocalVariationImageType::Pointer | m_LocalVariation |
| InputImageType::Pointer | m_OriginalImage |
| double | m_Lambda |
Performs a single iteration of total variation denoising.
This filter implements one step of the iterative total variation (TV) denoising algorithm. Given the current estimate of the denoised image (as the filter input) and the original noisy image (set via SetOriginalImage()), it computes a weighted average at each pixel that balances fidelity to the original with local smoothness.
The weighting is controlled by the Lambda parameter and the local variation in the image (computed via LocalVariationImageFilter in BeforeThreadedGenerateData()). Larger Lambda values favor fidelity to the original image.
This filter is typically not used directly but is called iteratively by TotalVariationDenoisingImageFilter.
Reference: Tony F. Chan et al., The digital TV filter and nonlinear denoising
| TInputImage | The type of the input image. |
| TOutputImage | The type of the output image. |
Definition at line 51 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef SmartPointer<const Self> itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 69 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef InputImageType::RegionType itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::InputImageRegionType |
Definition at line 82 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef TInputImage itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::InputImageType |
Convenient typedefs for simplifying declarations.
Definition at line 59 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef InputImageType::PixelType itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::InputPixelType |
Image typedef support.
Definition at line 79 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef InputImageType::SizeType itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::InputSizeType |
Definition at line 85 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef itk::Image<float, InputImageDimension> itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::LocalVariationImageType |
Float image type used to store the local variation at each pixel.
Definition at line 63 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef OutputImageType::RegionType itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::OutputImageRegionType |
Definition at line 83 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef TOutputImage itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::OutputImageType |
Definition at line 60 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef OutputImageType::PixelType itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::OutputPixelType |
Definition at line 80 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef SmartPointer<Self> itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 68 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef TotalVariationSingleIterationImageFilter itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 66 of file itkTotalVariationSingleIterationImageFilter.h.
| typedef ImageToImageFilter<InputImageType, OutputImageType> itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 67 of file itkTotalVariationSingleIterationImageFilter.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 123 of file itkTotalVariationSingleIterationImageFilter.h.
|
overrideprotected |
| Pointer itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::Clone | ( | ) | const |
|
override |
Generates the input requested region, padded by a radius of 1.
This filter requires a larger input requested region than the output requested region because it accesses face-connected neighbors.
| itk::InvalidRequestedRegionError | if the padded region falls outside the input's largest possible region. |
|
virtual |
Run-time type information (and related methods).
|
virtual |
|
inline |
Get the original (undenoised) image.
Definition at line 120 of file itkTotalVariationSingleIterationImageFilter.h.
References itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::m_OriginalImage.
| itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro | ( | InputImageDimension | , |
| unsigned int | , | ||
| TInputImage::ImageDimension | |||
| ) |
Extract dimension from input and output image.
| itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro | ( | OutputImageDimension | , |
| unsigned int | , | ||
| TOutputImage::ImageDimension | |||
| ) |
|
static |
Method for creation through the object factory.
|
overrideprotected |
|
virtual |
Set/Get the regularization parameter Lambda.
Lambda controls the trade-off between fidelity to the original image and smoothness in the denoised output. Default is 1.0.
|
inline |
Set the original (undenoised) image used as a reference for the data fidelity term.
| [in] | in | Pointer to the original input image. |
Definition at line 114 of file itkTotalVariationSingleIterationImageFilter.h.
References itk::TotalVariationSingleIterationImageFilter< TInputImage, TOutputImage >::m_OriginalImage.
|
overrideprotected |
MedianImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
|
protected |
Definition at line 144 of file itkTotalVariationSingleIterationImageFilter.h.
|
protected |
Definition at line 140 of file itkTotalVariationSingleIterationImageFilter.h.
|
protected |