Class BinaryMagnitudeImageFilter


public class BinaryMagnitudeImageFilter extends ImageFilter
Computes the square root of the sum of squares of corresponding input pixels. This filter 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. The filter walks over all of the pixels in the two input images, and for each pixel does the following: cast the input 1 pixel value to double cast the input 2 pixel value to double compute the sum of squares of the two pixel values compute the square root of the sum cast the double value resulting from std::sqrt() to the pixel type of the output image store the cast value into the output image. The filter expects all images to have the same dimension (e.g. all 2D, or all 3D, or all ND) See: itk::simple::BinaryMagnitude for the procedural interface itk::BinaryMagnitudeImageFilter for the Doxygen on the original ITK class. C++ includes: sitkBinaryMagnitudeImageFilter.h
  • Constructor Details

    • BinaryMagnitudeImageFilter

      protected BinaryMagnitudeImageFilter(long cPtr, boolean cMemoryOwn)
    • BinaryMagnitudeImageFilter

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

    • getCPtr

      protected static long getCPtr(BinaryMagnitudeImageFilter obj)
    • swigRelease

      protected static long swigRelease(BinaryMagnitudeImageFilter obj)
    • finalize

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

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

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

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

      public Image execute(Image image1, Image image2)
      Image itk::simple::BinaryMagnitudeImageFilter::Execute(Image &&image1, const Image &image2) Execute the filter on the input images