Class ZeroCrossingImageFilter


public class ZeroCrossingImageFilter extends ImageFilter
This filter finds the closest pixel to the zero-crossings (sign changes) in a signed itk::Image . Pixels closest to zero-crossings are labeled with a foreground value. All other pixels are marked with a background value. The algorithm works by detecting differences in sign among neighbors using city- block style connectivity (4-neighbors in 2d, 6-neighbors in 3d, etc.). Inputs and Outputs The input to this filter is an itk::Image of arbitrary dimension. The algorithm assumes a signed data type (zero-crossings are not defined for unsigned int data types), and requires that operator>, operator<, operator==, and operator!= are defined. The output of the filter is a binary, labeled image of user-specified type. By default, zero-crossing pixels are labeled with a default "foreground" value of itk::NumericTraits<OutputDataType>::OneValue() , where OutputDataType is the data type of the output image. All other pixels are labeled with a default "background" value of itk::NumericTraits<OutputDataType>::ZeroValue() . Parameters There are two parameters for this filter. ForegroundValue is the value that marks zero-crossing pixels. The BackgroundValue is the value given to all other pixels. See: Image Neighborhood NeighborhoodOperator NeighborhoodIterator itk::simple::ZeroCrossing for the procedural interface itk::ZeroCrossingImageFilter for the Doxygen on the original ITK class. C++ includes: sitkZeroCrossingImageFilter.h
  • Constructor Details

    • ZeroCrossingImageFilter

      protected ZeroCrossingImageFilter(long cPtr, boolean cMemoryOwn)
    • ZeroCrossingImageFilter

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

    • getCPtr

      protected static long getCPtr(ZeroCrossingImageFilter obj)
    • swigRelease

      protected static long swigRelease(ZeroCrossingImageFilter obj)
    • finalize

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

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

      public void setForegroundValue(short ForegroundValue)
      Self& itk::simple::ZeroCrossingImageFilter::SetForegroundValue(uint8_t ForegroundValue) Set/Get the label value for zero-crossing pixels.
    • getForegroundValue

      public short getForegroundValue()
      uint8_t itk::simple::ZeroCrossingImageFilter::GetForegroundValue() const Set/Get the label value for zero-crossing pixels.
    • setBackgroundValue

      public void setBackgroundValue(short BackgroundValue)
      Self& itk::simple::ZeroCrossingImageFilter::SetBackgroundValue(uint8_t BackgroundValue) Set/Get the label value for non-zero-crossing pixels.
    • getBackgroundValue

      public short getBackgroundValue()
      uint8_t itk::simple::ZeroCrossingImageFilter::GetBackgroundValue() const Set/Get the label value for non-zero-crossing pixels.
    • getName

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

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

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