Package org.itk.simple
Class ChangeLabelLabelMapFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.ChangeLabelLabelMapFilter
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
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::ChangeLabelLabelMapFilter::ChangeLabelLabelMapFilter() Default Constructor that takes no arguments and initializes default parametersprotected
ChangeLabelLabelMapFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::ChangeLabelLabelMapFilter::~ChangeLabelLabelMapFilter() DestructorImage itk::simple::ChangeLabelLabelMapFilter::Execute(Image &&image1) Execute the filter on the input imageprotected void
finalize()
std::map<double,double> itk::simple::ChangeLabelLabelMapFilter::GetChangeMap() constprotected static long
getName()
std::string itk::simple::ChangeLabelLabelMapFilter::GetName() const Name of this classvoid
setChangeMap
(DoubleDoubleMap ChangeMap) Self& itk::simple::ChangeLabelLabelMapFilter::SetChangeMap(std::map< double, double > ChangeMap)protected static long
toString()
std::string itk::simple::ChangeLabelLabelMapFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
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
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::ChangeLabelLabelMapFilter::~ChangeLabelLabelMapFilter() Destructor- Overrides:
delete
in classImageFilter
-
setChangeMap
Self& itk::simple::ChangeLabelLabelMapFilter::SetChangeMap(std::map< double, double > ChangeMap) -
getChangeMap
std::map<double,double> itk::simple::ChangeLabelLabelMapFilter::GetChangeMap() const -
getName
std::string itk::simple::ChangeLabelLabelMapFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::ChangeLabelLabelMapFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::ChangeLabelLabelMapFilter::Execute(Image &&image1) Execute the filter on the input image
-