Package org.itk.simple
Class MergeLabelMapFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.MergeLabelMapFilter
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::MergeLabelMapFilter::MergeLabelMapFilter() Default Constructor that takes no arguments and initializes default parametersprotected
MergeLabelMapFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::MergeLabelMapFilter::~MergeLabelMapFilter() DestructorImage itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input imagesImage itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input imagesImage itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input imagesImage itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input imagesImage itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input imagesexecute
(VectorOfImage images) Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input imagesprotected void
finalize()
protected static long
MethodType itk::simple::MergeLabelMapFilter::GetMethod() const Set/Get the method used to merge the label mapsgetName()
std::string itk::simple::MergeLabelMapFilter::GetName() const Name of this classvoid
Self& itk::simple::MergeLabelMapFilter::SetMethod(MethodType Method) Set/Get the method used to merge the label mapsprotected static long
toString()
std::string itk::simple::MergeLabelMapFilter::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
-
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
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::MergeLabelMapFilter::~MergeLabelMapFilter() Destructor- Overrides:
delete
in classImageFilter
-
setMethod
Self& itk::simple::MergeLabelMapFilter::SetMethod(MethodType Method) Set/Get the method used to merge the label maps -
getMethod
MethodType itk::simple::MergeLabelMapFilter::GetMethod() const Set/Get the method used to merge the label maps -
getName
std::string itk::simple::MergeLabelMapFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::MergeLabelMapFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images -
execute
Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images -
execute
Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images -
execute
Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images -
execute
Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images -
execute
Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images
-