Class GradientImageFilter


public class GradientImageFilter extends ImageFilter
Computes the gradient of an image using directional derivatives. Computes the gradient of an image using directional derivatives. The directional derivative at each pixel location is computed by convolution with a first-order derivative operator. The second template parameter defines the value type used in the derivative operator (defaults to float). The third template parameter defines the value type used for output image (defaults to float). The output image is defined as a covariant vector image whose value type is specified as this third template parameter. See: Image Neighborhood NeighborhoodOperator NeighborhoodIterator itk::simple::Gradient for the procedural interface itk::GradientImageFilter for the Doxygen on the original ITK class. C++ includes: sitkGradientImageFilter.h
  • Constructor Details

    • GradientImageFilter

      protected GradientImageFilter(long cPtr, boolean cMemoryOwn)
    • GradientImageFilter

      public GradientImageFilter()
      itk::simple::GradientImageFilter::GradientImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(GradientImageFilter obj)
    • swigRelease

      protected static long swigRelease(GradientImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::GradientImageFilter::~GradientImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • setUseImageSpacing

      public void setUseImageSpacing(boolean UseImageSpacing)
      Self& itk::simple::GradientImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set/Get whether or not the filter will use the spacing of the input image in its calculations. Use On to take the image spacing information into account and to compute the derivatives in physical space; use Off to ignore the image spacing and to compute the derivatives in isotropic voxel space. Default is On.
    • useImageSpacingOn

      public void useImageSpacingOn()
      Self& itk::simple::GradientImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully.
    • useImageSpacingOff

      public void useImageSpacingOff()
      Self& itk::simple::GradientImageFilter::UseImageSpacingOff()
    • getUseImageSpacing

      public boolean getUseImageSpacing()
      bool itk::simple::GradientImageFilter::GetUseImageSpacing() const Set/Get whether or not the filter will use the spacing of the input image in its calculations. Use On to take the image spacing information into account and to compute the derivatives in physical space; use Off to ignore the image spacing and to compute the derivatives in isotropic voxel space. Default is On.
    • setUseImageDirection

      public void setUseImageDirection(boolean UseImageDirection)
      Self& itk::simple::GradientImageFilter::SetUseImageDirection(bool UseImageDirection) The UseImageDirection flag determines whether image derivatives are computed with respect to the image grid or with respect to the physical space. When this flag is ON the derivatives are computed with respect to the coordinate system of physical space. The difference is whether we take into account the image Direction or not. The flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. The default value of this flag is On.
    • useImageDirectionOn

      public void useImageDirectionOn()
      Self& itk::simple::GradientImageFilter::UseImageDirectionOn() Set the value of UseImageDirection to true or false respectfully.
    • useImageDirectionOff

      public void useImageDirectionOff()
      Self& itk::simple::GradientImageFilter::UseImageDirectionOff()
    • getUseImageDirection

      public boolean getUseImageDirection()
      bool itk::simple::GradientImageFilter::GetUseImageDirection() const The UseImageDirection flag determines whether image derivatives are computed with respect to the image grid or with respect to the physical space. When this flag is ON the derivatives are computed with respect to the coordinate system of physical space. The difference is whether we take into account the image Direction or not. The flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. The default value of this flag is On.
    • getName

      public String getName()
      std::string itk::simple::GradientImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::GradientImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public Image execute(Image image1)
      Image itk::simple::GradientImageFilter::Execute(const Image &image1) Execute the filter on the input image