Class BinaryFillholeImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryFillholeImageFilter
Remove holes not connected to the boundary of the image.
BinaryFillholeImageFilter fills holes in a binary image.
Geodesic morphology and the Fillhole algorithm is described in Chapter
6 of Pierre Soille's book "Morphological Image Analysis: Principles
and Applications", Second Edition, Springer, 2003.
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
This implementation was taken from the Insight Journal paper: https://doi.org/10.54294/q6auw4
See:
GrayscaleFillholeImageFilter
itk::simple::BinaryFillhole for the procedural interface
itk::BinaryFillholeImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryFillholeImageFilter.h
-
Field Summary
Fields inherited from class ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::BinaryFillholeImageFilter::BinaryFillholeImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBinaryFillholeImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::BinaryFillholeImageFilter::~BinaryFillholeImageFilter() DestructorImage itk::simple::BinaryFillholeImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()voidSelf& itk::simple::BinaryFillholeImageFilter::FullyConnectedOff()voidSelf& itk::simple::BinaryFillholeImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static longdoubledouble itk::simple::BinaryFillholeImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground".booleanbool itk::simple::BinaryFillholeImageFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.getName()std::string itk::simple::BinaryFillholeImageFilter::GetName() const Name of this classvoidsetForegroundValue(double ForegroundValue) Self& itk::simple::BinaryFillholeImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground".voidsetFullyConnected(boolean FullyConnected) Self& itk::simple::BinaryFillholeImageFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.protected static longtoString()std::string itk::simple::BinaryFillholeImageFilter::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
-
BinaryFillholeImageFilter
protected BinaryFillholeImageFilter(long cPtr, boolean cMemoryOwn) -
BinaryFillholeImageFilter
public BinaryFillholeImageFilter()itk::simple::BinaryFillholeImageFilter::BinaryFillholeImageFilter() 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::BinaryFillholeImageFilter::~BinaryFillholeImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setFullyConnected
public void setFullyConnected(boolean FullyConnected) Self& itk::simple::BinaryFillholeImageFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn. -
fullyConnectedOn
public void fullyConnectedOn()Self& itk::simple::BinaryFillholeImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully. -
fullyConnectedOff
public void fullyConnectedOff()Self& itk::simple::BinaryFillholeImageFilter::FullyConnectedOff() -
getFullyConnected
public boolean getFullyConnected()bool itk::simple::BinaryFillholeImageFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn. -
setForegroundValue
public void setForegroundValue(double ForegroundValue) Self& itk::simple::BinaryFillholeImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground". Defaults to maximum value of InputPixelType. -
getForegroundValue
public double getForegroundValue()double itk::simple::BinaryFillholeImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground". Defaults to maximum value of InputPixelType. -
getName
std::string itk::simple::BinaryFillholeImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::BinaryFillholeImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-