Class GrayscaleFillholeImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.GrayscaleFillholeImageFilter
Remove local minima not connected to the boundary of the image.
GrayscaleFillholeImageFilter fills holes in a grayscale image. Holes are local minima in the
grayscale topography that are not connected to boundaries of the
image. Gray level values adjacent to a hole are extrapolated across
the hole.
This filter is used to smooth over local minima without affecting the
values of local maxima. If you take the difference between the output
of this filter and the original image (and perhaps threshold the
difference above a small value), you'll obtain a map of the local
minima.
This filter uses the ReconstructionByErosionImageFilter . It provides its own input as the "mask" input to the geodesic
erosion. The "marker" image for the geodesic erosion is constructed
such that boundary pixels match the boundary pixels of the input image
and the interior pixels are set to the maximum pixel value in the
input 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.
See:
ReconstructionByErosionImageFilter
MorphologyImageFilter , GrayscaleErodeImageFilter , GrayscaleFunctionErodeImageFilter , BinaryErodeImageFilter
itk::simple::GrayscaleFillhole for the procedural interface
itk::GrayscaleFillholeImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkGrayscaleFillholeImageFilter.h
-
Field Summary
Fields inherited from class ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::GrayscaleFillholeImageFilter::GrayscaleFillholeImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedGrayscaleFillholeImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::GrayscaleFillholeImageFilter::~GrayscaleFillholeImageFilter() DestructorImage itk::simple::GrayscaleFillholeImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()voidSelf& itk::simple::GrayscaleFillholeImageFilter::FullyConnectedOff()voidSelf& itk::simple::GrayscaleFillholeImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static longbooleanbool itk::simple::GrayscaleFillholeImageFilter::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::GrayscaleFillholeImageFilter::GetName() const Name of this classvoidsetFullyConnected(boolean FullyConnected) Self& itk::simple::GrayscaleFillholeImageFilter::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::GrayscaleFillholeImageFilter::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
-
GrayscaleFillholeImageFilter
protected GrayscaleFillholeImageFilter(long cPtr, boolean cMemoryOwn) -
GrayscaleFillholeImageFilter
public GrayscaleFillholeImageFilter()itk::simple::GrayscaleFillholeImageFilter::GrayscaleFillholeImageFilter() 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::GrayscaleFillholeImageFilter::~GrayscaleFillholeImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setFullyConnected
public void setFullyConnected(boolean FullyConnected) Self& itk::simple::GrayscaleFillholeImageFilter::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::GrayscaleFillholeImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully. -
fullyConnectedOff
public void fullyConnectedOff()Self& itk::simple::GrayscaleFillholeImageFilter::FullyConnectedOff() -
getFullyConnected
public boolean getFullyConnected()bool itk::simple::GrayscaleFillholeImageFilter::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. -
getName
std::string itk::simple::GrayscaleFillholeImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::GrayscaleFillholeImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-