Class MergeLabelMapFilter


public class MergeLabelMapFilter extends ImageFilter
Merges several Label Maps. This filter takes one or more input Label Map and merges them. SetMethod() can be used to change how the filter manage the labels from the different label maps. KEEP (0): MergeLabelMapFilter do its best to keep the label unchanged, but if a label is already used in a previous label map, a new label is assigned. AGGREGATE (1): If the same label is found several times in the label maps, the label objects with the same label are merged. PACK (2): MergeLabelMapFilter relabel all the label objects by order of processing. No conflict can occur. STRICT (3): MergeLabelMapFilter keeps the labels unchanged and raises an exception if the same label is found in several images. 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: ShapeLabelObject , RelabelComponentImageFilter itk::simple::MergeLabelMapFilter for the procedural interface C++ includes: sitkMergeLabelMapFilter.h
  • Constructor Details

    • MergeLabelMapFilter

      protected MergeLabelMapFilter(long cPtr, boolean cMemoryOwn)
    • MergeLabelMapFilter

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

    • getCPtr

      protected static long getCPtr(MergeLabelMapFilter obj)
    • swigRelease

      protected static long swigRelease(MergeLabelMapFilter obj)
    • finalize

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

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

      public void setMethod(MergeLabelMapFilter.MethodType Method)
      Self& itk::simple::MergeLabelMapFilter::SetMethod(MethodType Method) Set/Get the method used to merge the label maps
    • getMethod

      public MergeLabelMapFilter.MethodType getMethod()
      MethodType itk::simple::MergeLabelMapFilter::GetMethod() const Set/Get the method used to merge the label maps
    • getName

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

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

      public Image execute(VectorOfImage images)
      Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images
    • execute

      public Image execute(Image image1)
      Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images
    • execute

      public Image execute(Image image1, Image image2)
      Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images
    • execute

      public Image execute(Image image1, Image image2, Image image3)
      Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images
    • execute

      public Image execute(Image image1, Image image2, Image image3, Image image4)
      Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images
    • execute

      public Image execute(Image image1, Image image2, Image image3, Image image4, Image image5)
      Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images