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://doi.org/10.54294/q6auw4
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 ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::MergeLabelMapFilter::MergeLabelMapFilter() Default Constructor that takes no arguments and initializes default parametersprotectedMergeLabelMapFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()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 voidfinalize()protected static longMethodType 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 classvoidSelf& itk::simple::MergeLabelMapFilter::SetMethod(MethodType Method) Set/Get the method used to merge the label mapsprotected static longtoString()std::string itk::simple::MergeLabelMapFilter::ToString() const Print ourselves outMethods inherited from class ImageFilter
getCPtr, swigReleaseModifier and TypeMethodDescriptionprotected static longgetCPtr(ImageFilter obj) protected static longswigRelease(ImageFilter obj) Methods inherited from class 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, swigReleaseModifier and TypeMethodDescriptionvoidabort()virtual void itk::simple::ProcessObject::Abort() Sets an abort flag on the active process.intaddCommand(EventEnum event, Command cmd) virtual int itk::simple::ProcessObject::AddCommand(itk::simple::EventEnum event, itk::simple::Command &cmd) Add a Command Object to observer the event.voiddebugOff()voiddebugOn()protected static longgetCPtr(ProcessObject obj) booleangetDebug()static doublestatic booleanstatic doublestatic longstatic Stringstatic booleanlonglongfloatvirtual float itk::simple::ProcessObject::GetProgress() const An Active Measurement of the progress of execution.static voidstatic voidstatic voidstatic voidbooleanhasCommand(EventEnum event) virtual bool itk::simple::ProcessObject::HasCommand(itk::simple::EventEnum event) const Query of this object has any registered commands for event.voidvirtual void itk::simple::ProcessObject::RemoveAllCommands() Remove all registered commands.voidsetDebug(boolean debugFlag) static voidsetGlobalDefaultCoordinateTolerance(double arg0) static voidsetGlobalDefaultDebug(boolean debugFlag) static voidsetGlobalDefaultDirectionTolerance(double arg0) static voidsetGlobalDefaultNumberOfThreads(long n) static booleansetGlobalDefaultThreader(String threader) static voidsetGlobalWarningDisplay(boolean flag) voidsetNumberOfThreads(long n) voidsetNumberOfWorkUnits(long n) protected static longswigRelease(ProcessObject obj)
-
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:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::MergeLabelMapFilter::~MergeLabelMapFilter() Destructor- Overrides:
deletein 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:
getNamein classProcessObject
-
toString
std::string itk::simple::MergeLabelMapFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
Image itk::simple::MergeLabelMapFilter::Execute(const std::vector< Image > &images) Execute the filter on the input images -
execute
-
execute
-
execute
-
execute
-
execute
-