Class SubtractImageFilter


public class SubtractImageFilter extends ImageFilter
Pixel-wise subtraction of two images. Subtract each pixel from image2 from its corresponding pixel in image1: This is done using This class is templated over the types of the two input images and the type of the output image. Numeric conversions (castings) are done by the C++ defaults. Additionally, a constant can be subtracted from every pixel in an image using: The result of AddImageFilter with a negative constant is not necessarily the same as SubtractImageFilter . This would be the case when the PixelType defines an operator-() that is not the inverse of operator+() See: itk::simple::Subtract for the procedural interface itk::SubtractImageFilter for the Doxygen on the original ITK class. C++ includes: sitkSubtractImageFilter.h
  • Constructor Details

    • SubtractImageFilter

      protected SubtractImageFilter(long cPtr, boolean cMemoryOwn)
    • SubtractImageFilter

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

    • getCPtr

      protected static long getCPtr(SubtractImageFilter obj)
    • swigRelease

      protected static long swigRelease(SubtractImageFilter obj)
    • finalize

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

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

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

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

      public Image execute(Image image1, Image image2)
      Image itk::simple::SubtractImageFilter::Execute(Image &&image1, double constant)
    • execute

      public Image execute(Image image1, double constant)
      Image itk::simple::SubtractImageFilter::Execute(Image &&image1, double constant)
    • execute

      public Image execute(double constant, Image image2)
      Image itk::simple::SubtractImageFilter::Execute(Image &&image1, double constant)