Wraps itk::GradientMagnitudeRecursiveGaussianImageFilter.
More...
#include <vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter.h>
Wraps itk::GradientMagnitudeRecursiveGaussianImageFilter.
Computes the magnitude of the gradient of the input image after Gaussian smoothing at scale Sigma, using ITK's efficient IIR (recursive) Gaussian derivative implementation rather than a discrete convolution kernel. Commonly used to build a speed/feature image for level-set segmentation (see vtkvmtkGeodesicActiveContourLevelSetImageFilter).
- See also
- vtkvmtkGradientMagnitudeRecursiveGaussian2DImageFilter, vtkvmtkGradientMagnitudeImageFilter
Definition at line 41 of file vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter.h.
◆ Superclass
◆ vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter()
| vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter |
( |
| ) |
|
|
protected |
◆ ~vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter()
| vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::~vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter |
( |
| ) |
|
|
inlineprotected |
◆ New()
◆ IsTypeOf()
| int vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::IsTypeOf |
( |
const char * | type | ) |
|
|
static |
◆ IsA()
| virtual int vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::IsA |
( |
const char * | type | ) |
|
|
virtual |
◆ SafeDownCast()
◆ NewInstanceInternal()
| virtual vtkObjectBase * vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
◆ NewInstance()
◆ GetSigma()
| virtual double vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::GetSigma |
( |
| ) |
|
|
virtual |
Set/Get the standard deviation of the Gaussian used to smooth the image before differentiating, in the same physical units as the image spacing.
◆ SetSigma()
| virtual void vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::SetSigma |
( |
double | | ) |
|
|
virtual |
Set/Get the standard deviation of the Gaussian used to smooth the image before differentiating, in the same physical units as the image spacing.
◆ GetNormalizeAcrossScale()
| virtual int vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::GetNormalizeAcrossScale |
( |
| ) |
|
|
virtual |
Toggle normalizing the derivative across scale space (ITK's SetNormalizeAcrossScale), which keeps gradient magnitudes comparable across different Sigma values. Default: off.
◆ SetNormalizeAcrossScale()
| virtual void vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::SetNormalizeAcrossScale |
( |
int | | ) |
|
|
virtual |
Toggle normalizing the derivative across scale space (ITK's SetNormalizeAcrossScale), which keeps gradient magnitudes comparable across different Sigma values. Default: off.
◆ NormalizeAcrossScaleOn()
| virtual void vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::NormalizeAcrossScaleOn |
( |
| ) |
|
|
virtual |
Toggle normalizing the derivative across scale space (ITK's SetNormalizeAcrossScale), which keeps gradient magnitudes comparable across different Sigma values. Default: off.
◆ NormalizeAcrossScaleOff()
| virtual void vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::NormalizeAcrossScaleOff |
( |
| ) |
|
|
virtual |
Toggle normalizing the derivative across scale space (ITK's SetNormalizeAcrossScale), which keeps gradient magnitudes comparable across different Sigma values. Default: off.
◆ SimpleExecute()
| void vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter::SimpleExecute |
( |
vtkImageData * | input, |
|
|
vtkImageData * | output ) |
|
overrideprotectedvirtual |
Definition at line 41 of file vtkvmtkGradientMagnitudeRecursiveGaussianImageFilter.cxx.
42{
43 typedef itk::Image<float,3> ImageType;
44
45 ImageType::Pointer inImage = ImageType::New();
46
48
49 typedef itk::GradientMagnitudeRecursiveGaussianImageFilter<ImageType,ImageType> GradientMagnitudeFilterType;
50
51 GradientMagnitudeFilterType::Pointer gradientMagnitudeFilter = GradientMagnitudeFilterType::New();
52 gradientMagnitudeFilter->SetInput(inImage);
53 gradientMagnitudeFilter->SetSigma(this->Sigma);
54 gradientMagnitudeFilter->SetNormalizeAcrossScale(this->NormalizeAcrossScale);
55 gradientMagnitudeFilter->Update();
56
58}
static void ITKToVTKImage(typename TImage::Pointer input, vtkImageData *output)
static void VTKToITKImage(vtkImageData *input, typename TImage::Pointer output)
The documentation for this class was generated from the following files: