Package org.itk.simple
Class AreaOpeningImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.AreaOpeningImageFilter
Morphological opening by attributes.
An attribute opening removes blobs according to criteria such as area.
When applied to grayscale images they have the effect of trimming
peaks (regions brighter 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::AreaOpening for the procedural interface
itk::AreaOpeningImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkAreaOpeningImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::AreaOpeningImageFilter::AreaOpeningImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
AreaOpeningImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::AreaOpeningImageFilter::~AreaOpeningImageFilter() DestructorImage itk::simple::AreaOpeningImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
void
Self& itk::simple::AreaOpeningImageFilter::FullyConnectedOff()void
Self& itk::simple::AreaOpeningImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static long
boolean
bool itk::simple::AreaOpeningImageFilter::GetFullyConnected() constdouble
double itk::simple::AreaOpeningImageFilter::GetLambda() constgetName()
std::string itk::simple::AreaOpeningImageFilter::GetName() const Name of this classboolean
bool itk::simple::AreaOpeningImageFilter::GetUseImageSpacing() const Set/Get whether the image spacing is used or not - defaults to true.void
setFullyConnected
(boolean FullyConnected) Self& itk::simple::AreaOpeningImageFilter::SetFullyConnected(bool FullyConnected)void
setLambda
(double Lambda) Self& itk::simple::AreaOpeningImageFilter::SetLambda(double Lambda) The size of the area opening.void
setUseImageSpacing
(boolean UseImageSpacing) Self& itk::simple::AreaOpeningImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set/Get whether the image spacing is used or not - defaults to true.protected static long
toString()
std::string itk::simple::AreaOpeningImageFilter::ToString() const Print ourselves outvoid
Self& itk::simple::AreaOpeningImageFilter::UseImageSpacingOff()void
Self& itk::simple::AreaOpeningImageFilter::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
-
AreaOpeningImageFilter
protected AreaOpeningImageFilter(long cPtr, boolean cMemoryOwn) -
AreaOpeningImageFilter
public AreaOpeningImageFilter()itk::simple::AreaOpeningImageFilter::AreaOpeningImageFilter() 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::AreaOpeningImageFilter::~AreaOpeningImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setLambda
public void setLambda(double Lambda) Self& itk::simple::AreaOpeningImageFilter::SetLambda(double Lambda) The size of the area opening. -
getLambda
public double getLambda()double itk::simple::AreaOpeningImageFilter::GetLambda() const -
setUseImageSpacing
public void setUseImageSpacing(boolean UseImageSpacing) Self& itk::simple::AreaOpeningImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set/Get whether the image spacing is used or not - defaults to true. -
useImageSpacingOn
public void useImageSpacingOn()Self& itk::simple::AreaOpeningImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully. -
useImageSpacingOff
public void useImageSpacingOff()Self& itk::simple::AreaOpeningImageFilter::UseImageSpacingOff() -
getUseImageSpacing
public boolean getUseImageSpacing()bool itk::simple::AreaOpeningImageFilter::GetUseImageSpacing() const Set/Get whether the image spacing is used or not - defaults to true. -
setFullyConnected
public void setFullyConnected(boolean FullyConnected) Self& itk::simple::AreaOpeningImageFilter::SetFullyConnected(bool FullyConnected) -
fullyConnectedOn
public void fullyConnectedOn()Self& itk::simple::AreaOpeningImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully. -
fullyConnectedOff
public void fullyConnectedOff()Self& itk::simple::AreaOpeningImageFilter::FullyConnectedOff() -
getFullyConnected
public boolean getFullyConnected()bool itk::simple::AreaOpeningImageFilter::GetFullyConnected() const -
getName
std::string itk::simple::AreaOpeningImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::AreaOpeningImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::AreaOpeningImageFilter::Execute(const Image &image1) Execute the filter on the input image
-