Class LabelMapToBinaryImageFilter


public class LabelMapToBinaryImageFilter extends ImageFilter
Convert a LabelMap to a binary image. LabelMapToBinaryImageFilter to a binary image. All the objects in the image are used as foreground. The background values of the original binary image can be restored by passing this image to the filter with the SetBackgroundImage() method. This implementation was taken from the Insight Journal paper: https://www.insight-journal.org/browse/publication/176 Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France. See: LabelMapToLabelImageFilter , LabelMapMaskImageFilter itk::simple::LabelMapToBinary for the procedural interface itk::LabelMapToBinaryImageFilter for the Doxygen on the original ITK class. C++ includes: sitkLabelMapToBinaryImageFilter.h
  • Constructor Details

    • LabelMapToBinaryImageFilter

      protected LabelMapToBinaryImageFilter(long cPtr, boolean cMemoryOwn)
    • LabelMapToBinaryImageFilter

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

    • getCPtr

      protected static long getCPtr(LabelMapToBinaryImageFilter obj)
    • swigRelease

      protected static long swigRelease(LabelMapToBinaryImageFilter obj)
    • finalize

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

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

      public void setBackgroundValue(double BackgroundValue)
      Self& itk::simple::LabelMapToBinaryImageFilter::SetBackgroundValue(double BackgroundValue) Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
    • getBackgroundValue

      public double getBackgroundValue()
      double itk::simple::LabelMapToBinaryImageFilter::GetBackgroundValue() const Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
    • setForegroundValue

      public void setForegroundValue(double ForegroundValue)
      Self& itk::simple::LabelMapToBinaryImageFilter::SetForegroundValue(double ForegroundValue) Set/Get the value used as "foreground" in the output image. Defaults to NumericTraits<PixelType>::max() .
    • getForegroundValue

      public double getForegroundValue()
      double itk::simple::LabelMapToBinaryImageFilter::GetForegroundValue() const Set/Get the value used as "foreground" in the output image. Defaults to NumericTraits<PixelType>::max() .
    • getName

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

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

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