Class RelabelLabelMapFilter


public class RelabelLabelMapFilter extends ImageFilter
This filter relabels the LabelObjects; the new labels are arranged consecutively with consideration for the background value. This filter takes the LabelObjects from the input and reassigns them to the output by calling the PushLabelObject method, which by default, attempts to reorganize the labels consecutively. The user can assign an arbitrary value to the background; the filter will assign the labels consecutively by skipping the background value. 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::RelabelLabelMapFilter for the procedural interface itk::RelabelLabelMapFilter for the Doxygen on the original ITK class. C++ includes: sitkRelabelLabelMapFilter.h
  • Constructor Details

    • RelabelLabelMapFilter

      protected RelabelLabelMapFilter(long cPtr, boolean cMemoryOwn)
    • RelabelLabelMapFilter

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

    • getCPtr

      protected static long getCPtr(RelabelLabelMapFilter obj)
    • swigRelease

      protected static long swigRelease(RelabelLabelMapFilter obj)
    • finalize

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

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

      public void setReverseOrdering(boolean ReverseOrdering)
      Self& itk::simple::RelabelLabelMapFilter::SetReverseOrdering(bool ReverseOrdering)
    • reverseOrderingOn

      public void reverseOrderingOn()
      Self& itk::simple::RelabelLabelMapFilter::ReverseOrderingOn() Set the value of ReverseOrdering to true or false respectfully.
    • reverseOrderingOff

      public void reverseOrderingOff()
      Self& itk::simple::RelabelLabelMapFilter::ReverseOrderingOff()
    • getReverseOrdering

      public boolean getReverseOrdering()
      bool itk::simple::RelabelLabelMapFilter::GetReverseOrdering() const
    • getName

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

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

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