Class LabelMapMaskImageFilter


public class LabelMapMaskImageFilter extends ImageFilter
Mask and image with a LabelMap . LabelMapMaskImageFilter mask the content of an input image according to the content of the input LabelMap . The masked pixel of the input image are set to the BackgroundValue. LabelMapMaskImageFilter can keep the input image for one label only, with Negated = false (the default) or it can mask the input image for a single label, when Negated equals true. In Both cases, the label is set with SetLabel() . Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France. This implementation was taken from the Insight Journal paper: https://www.insight-journal.org/browse/publication/176 See: LabelMapToBinaryImageFilter , LabelMapToLabelImageFilter itk::simple::LabelMapMask for the procedural interface itk::LabelMapMaskImageFilter for the Doxygen on the original ITK class. C++ includes: sitkLabelMapMaskImageFilter.h
  • Constructor Details

    • LabelMapMaskImageFilter

      protected LabelMapMaskImageFilter(long cPtr, boolean cMemoryOwn)
    • LabelMapMaskImageFilter

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

    • getCPtr

      protected static long getCPtr(LabelMapMaskImageFilter obj)
    • swigRelease

      protected static long swigRelease(LabelMapMaskImageFilter obj)
    • finalize

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

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

      public void setLabel(long Label)
      Self& itk::simple::LabelMapMaskImageFilter::SetLabel(uint64_t Label) The label to mask or to not mask, depending on the value of the Negated ivar.
    • getLabel

      public long getLabel()
      uint64_t itk::simple::LabelMapMaskImageFilter::GetLabel() const The label to mask or to not mask, depending on the value of the Negated ivar.
    • setBackgroundValue

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

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

      public void setNegated(boolean Negated)
      Self& itk::simple::LabelMapMaskImageFilter::SetNegated(bool Negated) Set/Get whether the Label should be masked or not.
    • negatedOn

      public void negatedOn()
      Self& itk::simple::LabelMapMaskImageFilter::NegatedOn() Set the value of Negated to true or false respectfully.
    • negatedOff

      public void negatedOff()
      Self& itk::simple::LabelMapMaskImageFilter::NegatedOff()
    • getNegated

      public boolean getNegated()
      bool itk::simple::LabelMapMaskImageFilter::GetNegated() const Set/Get whether the Label should be masked or not.
    • setCrop

      public void setCrop(boolean Crop)
      Self& itk::simple::LabelMapMaskImageFilter::SetCrop(bool Crop) Set/Get whether the image size should be adjusted to the masked image or not.
    • cropOn

      public void cropOn()
      Self& itk::simple::LabelMapMaskImageFilter::CropOn() Set the value of Crop to true or false respectfully.
    • cropOff

      public void cropOff()
      Self& itk::simple::LabelMapMaskImageFilter::CropOff()
    • getCrop

      public boolean getCrop()
      bool itk::simple::LabelMapMaskImageFilter::GetCrop() const Set/Get whether the image size should be adjusted to the masked image or not.
    • setCropBorder

      public void setCropBorder(VectorUInt32 CropBorder)
      Self& itk::simple::LabelMapMaskImageFilter::SetCropBorder(unsigned int value) Set the values of the CropBorder vector all to value
    • setCropBorder

      public void setCropBorder(long value)
      Self& itk::simple::LabelMapMaskImageFilter::SetCropBorder(unsigned int value) Set the values of the CropBorder vector all to value
    • getCropBorder

      public VectorUInt32 getCropBorder()
      std::vector<unsigned int> itk::simple::LabelMapMaskImageFilter::GetCropBorder() const Set/Get the border added to the mask before the crop. The default is 0 on all the axes.
    • getName

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

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

      public Image execute(Image labelMapImage, Image featureImage)
      Image itk::simple::LabelMapMaskImageFilter::Execute(const Image &labelMapImage, const Image &featureImage) Execute the filter on the input image