Class ChangeLabelLabelMapFilter


public class ChangeLabelLabelMapFilter extends ImageFilter
Replace the label Ids of selected LabelObjects with new label Ids. This filter takes as input a label map and a list of pairs of Label Ids, to produce as output a new label map where the label Ids have been replaced according to the pairs in the list. Labels that are relabeled to the same label Id are automatically merged and optimized into a single LabelObject . The background label can also be changed. Any object relabeled to the output background will automatically be removed. 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 , ChangeLabelImageFilter itk::simple::ChangeLabelLabelMapFilter for the procedural interface itk::ChangeLabelLabelMapFilter for the Doxygen on the original ITK class. C++ includes: sitkChangeLabelLabelMapFilter.h
  • Constructor Details

    • ChangeLabelLabelMapFilter

      protected ChangeLabelLabelMapFilter(long cPtr, boolean cMemoryOwn)
    • ChangeLabelLabelMapFilter

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

    • getCPtr

      protected static long getCPtr(ChangeLabelLabelMapFilter obj)
    • swigRelease

      protected static long swigRelease(ChangeLabelLabelMapFilter obj)
    • finalize

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

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

      public void setChangeMap(DoubleDoubleMap ChangeMap)
      Self& itk::simple::ChangeLabelLabelMapFilter::SetChangeMap(std::map< double, double > ChangeMap)
    • getChangeMap

      public DoubleDoubleMap getChangeMap()
      std::map<double,double> itk::simple::ChangeLabelLabelMapFilter::GetChangeMap() const
    • getName

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

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

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