Package org.itk.simple
Class AreaClosingImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.AreaClosingImageFilter
Morphological closing by attributes.
An attribute closing removes blobs according to criteria such as area.
When applied to grayscale images they have the effect of filling
valleys (regions darker than their surroundings) based on area while
leaving the rest of the image unchanged.
This code was contributed in the Insight Journal paper
"Grayscale morphological attribute operations" by Beare R. https://hdl.handle.net/1926/1316 https://www.insight-journal.org/browse/publication/203
Richard Beare. Department of Medicine, Monash University, Melbourne,
Australia.
See:
itk::simple::AreaClosing for the procedural interface
itk::AreaClosingImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkAreaClosingImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::AreaClosingImageFilter::AreaClosingImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
AreaClosingImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::AreaClosingImageFilter::~AreaClosingImageFilter() DestructorImage itk::simple::AreaClosingImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
void
Self& itk::simple::AreaClosingImageFilter::FullyConnectedOff()void
Self& itk::simple::AreaClosingImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static long
boolean
bool itk::simple::AreaClosingImageFilter::GetFullyConnected() constdouble
double itk::simple::AreaClosingImageFilter::GetLambda() constgetName()
std::string itk::simple::AreaClosingImageFilter::GetName() const Name of this classboolean
bool itk::simple::AreaClosingImageFilter::GetUseImageSpacing() const Set/Get whether the image spacing is used or not - defaults to true.void
setFullyConnected
(boolean FullyConnected) Self& itk::simple::AreaClosingImageFilter::SetFullyConnected(bool FullyConnected)void
setLambda
(double Lambda) Self& itk::simple::AreaClosingImageFilter::SetLambda(double Lambda) The size of the area opening.void
setUseImageSpacing
(boolean UseImageSpacing) Self& itk::simple::AreaClosingImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set/Get whether the image spacing is used or not - defaults to true.protected static long
toString()
std::string itk::simple::AreaClosingImageFilter::ToString() const Print ourselves outvoid
Self& itk::simple::AreaClosingImageFilter::UseImageSpacingOff()void
Self& itk::simple::AreaClosingImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully.Methods 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
-
AreaClosingImageFilter
protected AreaClosingImageFilter(long cPtr, boolean cMemoryOwn) -
AreaClosingImageFilter
public AreaClosingImageFilter()itk::simple::AreaClosingImageFilter::AreaClosingImageFilter() 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::AreaClosingImageFilter::~AreaClosingImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setLambda
public void setLambda(double Lambda) Self& itk::simple::AreaClosingImageFilter::SetLambda(double Lambda) The size of the area opening. -
getLambda
public double getLambda()double itk::simple::AreaClosingImageFilter::GetLambda() const -
setUseImageSpacing
public void setUseImageSpacing(boolean UseImageSpacing) Self& itk::simple::AreaClosingImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set/Get whether the image spacing is used or not - defaults to true. -
useImageSpacingOn
public void useImageSpacingOn()Self& itk::simple::AreaClosingImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully. -
useImageSpacingOff
public void useImageSpacingOff()Self& itk::simple::AreaClosingImageFilter::UseImageSpacingOff() -
getUseImageSpacing
public boolean getUseImageSpacing()bool itk::simple::AreaClosingImageFilter::GetUseImageSpacing() const Set/Get whether the image spacing is used or not - defaults to true. -
setFullyConnected
public void setFullyConnected(boolean FullyConnected) Self& itk::simple::AreaClosingImageFilter::SetFullyConnected(bool FullyConnected) -
fullyConnectedOn
public void fullyConnectedOn()Self& itk::simple::AreaClosingImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully. -
fullyConnectedOff
public void fullyConnectedOff()Self& itk::simple::AreaClosingImageFilter::FullyConnectedOff() -
getFullyConnected
public boolean getFullyConnected()bool itk::simple::AreaClosingImageFilter::GetFullyConnected() const -
getName
std::string itk::simple::AreaClosingImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::AreaClosingImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::AreaClosingImageFilter::Execute(const Image &image1) Execute the filter on the input image
-