|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Calculates the local variation in each pixel. More...
#include <itkLocalVariationImageFilter.h>


Public Types | |
| typedef TInputImage | InputImageType |
| typedef TOutputImage | OutputImageType |
| typedef LocalVariationImageFilter | 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... | |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| LocalVariationImageFilter () | |
| ~LocalVariationImageFilter () override | |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override |
Calculates the local variation in each pixel.
For each pixel, this filter computes the local variation as the square root of the sum of squared differences between the pixel and each of its face-connected neighbors. A small epsilon (0.0001) is added inside the square root for numerical stability. The filter uses zero-flux Neumann boundary conditions.
This filter is used internally by TotalVariationSingleIterationImageFilter as part of the total variation denoising pipeline.
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 72 of file itkLocalVariationImageFilter.h.
| typedef SmartPointer<const Self> itk::LocalVariationImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 87 of file itkLocalVariationImageFilter.h.
| typedef InputImageType::RegionType itk::LocalVariationImageFilter< TInputImage, TOutputImage >::InputImageRegionType |
Definition at line 100 of file itkLocalVariationImageFilter.h.
| typedef TInputImage itk::LocalVariationImageFilter< TInputImage, TOutputImage >::InputImageType |
Convenient typedefs for simplifying declarations.
Definition at line 80 of file itkLocalVariationImageFilter.h.
| typedef InputImageType::PixelType itk::LocalVariationImageFilter< TInputImage, TOutputImage >::InputPixelType |
Image typedef support.
Definition at line 97 of file itkLocalVariationImageFilter.h.
| typedef InputImageType::SizeType itk::LocalVariationImageFilter< TInputImage, TOutputImage >::InputSizeType |
Definition at line 103 of file itkLocalVariationImageFilter.h.
| typedef OutputImageType::RegionType itk::LocalVariationImageFilter< TInputImage, TOutputImage >::OutputImageRegionType |
Definition at line 101 of file itkLocalVariationImageFilter.h.
| typedef TOutputImage itk::LocalVariationImageFilter< TInputImage, TOutputImage >::OutputImageType |
Definition at line 81 of file itkLocalVariationImageFilter.h.
| typedef OutputImageType::PixelType itk::LocalVariationImageFilter< TInputImage, TOutputImage >::OutputPixelType |
Definition at line 98 of file itkLocalVariationImageFilter.h.
| typedef SmartPointer<Self> itk::LocalVariationImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 86 of file itkLocalVariationImageFilter.h.
| typedef LocalVariationImageFilter itk::LocalVariationImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 84 of file itkLocalVariationImageFilter.h.
| typedef ImageToImageFilter<InputImageType, OutputImageType> itk::LocalVariationImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 85 of file itkLocalVariationImageFilter.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 121 of file itkLocalVariationImageFilter.h.
| Pointer itk::LocalVariationImageFilter< 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. The input region is padded by 1 pixel in each direction.
| itk::InvalidRequestedRegionError | if the padded region falls outside the input's largest possible region. |
|
virtual |
Run-time type information (and related methods).
| itk::LocalVariationImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro | ( | InputImageDimension | , |
| unsigned int | , | ||
| TInputImage::ImageDimension | |||
| ) |
Extract dimension from input and output image.
| itk::LocalVariationImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro | ( | OutputImageDimension | , |
| unsigned int | , | ||
| TOutputImage::ImageDimension | |||
| ) |
|
static |
Method for creation through the object factory.
|
overrideprotected |
|
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"