Class BinaryMorphologicalOpeningImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryMorphologicalOpeningImageFilter
binary morphological opening of an image.
This filter removes small (i.e., smaller than the structuring element)
structures in the interior or at the boundaries of the image. The
morphological opening of an image "f" is defined as: Opening(f) =
Dilatation(Erosion(f)).
The structuring element is assumed to be composed of binary values
(zero or one). Only elements of the structuring element having values
> 0 are candidates for affecting the center pixel.
This code was contributed in the Insight Journal paper: "Binary
morphological closing and opening image filters" by Lehmann G. https://doi.org/10.54294/bcwtvq
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
See:
MorphologyImageFilter , GrayscaleDilateImageFilter , GrayscaleErodeImageFilter
itk::simple::BinaryMorphologicalOpening for the procedural interface
itk::BinaryMorphologicalOpeningImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryMorphologicalOpeningImageFilter.h
-
Field Summary
Fields inherited from class ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::BinaryMorphologicalOpeningImageFilter::BinaryMorphologicalOpeningImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBinaryMorphologicalOpeningImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::BinaryMorphologicalOpeningImageFilter::~BinaryMorphologicalOpeningImageFilter() DestructorImage itk::simple::BinaryMorphologicalOpeningImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()doubledouble itk::simple::BinaryMorphologicalOpeningImageFilter::GetBackgroundValue() const Set the value in eroded part of the image.protected static longdoubledouble itk::simple::BinaryMorphologicalOpeningImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground".std::vector<unsigned int> itk::simple::BinaryMorphologicalOpeningImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.KernelEnum itk::simple::BinaryMorphologicalOpeningImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.getName()std::string itk::simple::BinaryMorphologicalOpeningImageFilter::GetName() const Name of this classvoidsetBackgroundValue(double BackgroundValue) Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetBackgroundValue(double BackgroundValue) Set the value in eroded part of the image.voidsetForegroundValue(double ForegroundValue) Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground".voidsetKernelRadius(long value) Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelRadius(VectorUInt32 KernelRadius) Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelType(KernelEnum KernelType) Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.protected static longtoString()std::string itk::simple::BinaryMorphologicalOpeningImageFilter::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
-
BinaryMorphologicalOpeningImageFilter
protected BinaryMorphologicalOpeningImageFilter(long cPtr, boolean cMemoryOwn) -
BinaryMorphologicalOpeningImageFilter
public BinaryMorphologicalOpeningImageFilter()itk::simple::BinaryMorphologicalOpeningImageFilter::BinaryMorphologicalOpeningImageFilter() 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::BinaryMorphologicalOpeningImageFilter::~BinaryMorphologicalOpeningImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setKernelRadius
Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
setKernelRadius
public void setKernelRadius(long value) Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
getKernelRadius
std::vector<unsigned int> itk::simple::BinaryMorphologicalOpeningImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element. -
setKernelType
Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology. -
getKernelType
KernelEnum itk::simple::BinaryMorphologicalOpeningImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology. -
setBackgroundValue
public void setBackgroundValue(double BackgroundValue) Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetBackgroundValue(double BackgroundValue) Set the value in eroded part of the image. Defaults to zero -
getBackgroundValue
public double getBackgroundValue()double itk::simple::BinaryMorphologicalOpeningImageFilter::GetBackgroundValue() const Set the value in eroded part of the image. Defaults to zero -
setForegroundValue
public void setForegroundValue(double ForegroundValue) Self& itk::simple::BinaryMorphologicalOpeningImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground". Defaults to maximum value of PixelType. -
getForegroundValue
public double getForegroundValue()double itk::simple::BinaryMorphologicalOpeningImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground". Defaults to maximum value of PixelType. -
getName
std::string itk::simple::BinaryMorphologicalOpeningImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::BinaryMorphologicalOpeningImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-