Class BinaryMorphologicalClosingImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryMorphologicalClosingImageFilter
binary morphological closing of an image.
This filter removes small (i.e., smaller than the structuring element)
holes and tube like structures in the interior or at the boundaries of
the image. The morphological closing of an image "f" is defined as:
Closing(f) = Erosion(Dilation(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::BinaryMorphologicalClosing for the procedural interface
 itk::BinaryMorphologicalClosingImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryMorphologicalClosingImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::BinaryMorphologicalClosingImageFilter::BinaryMorphologicalClosingImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBinaryMorphologicalClosingImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::BinaryMorphologicalClosingImageFilter::~BinaryMorphologicalClosingImageFilter() DestructorImage itk::simple::BinaryMorphologicalClosingImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()protected static longdoubledouble itk::simple::BinaryMorphologicalClosingImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground".std::vector<unsigned int> itk::simple::BinaryMorphologicalClosingImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.KernelEnum itk::simple::BinaryMorphologicalClosingImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.getName()std::string itk::simple::BinaryMorphologicalClosingImageFilter::GetName() const Name of this classbooleanbool itk::simple::BinaryMorphologicalClosingImageFilter::GetSafeBorder() const A safe border is added to input image to avoid borders effects and remove it once the closing is donevoidSelf& itk::simple::BinaryMorphologicalClosingImageFilter::SafeBorderOff()voidSelf& itk::simple::BinaryMorphologicalClosingImageFilter::SafeBorderOn() Set the value of SafeBorder to true or false respectfully.voidsetForegroundValue(double ForegroundValue) Self& itk::simple::BinaryMorphologicalClosingImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground".voidsetKernelRadius(long value) Self& itk::simple::BinaryMorphologicalClosingImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelRadius(VectorUInt32 KernelRadius) Self& itk::simple::BinaryMorphologicalClosingImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelType(KernelEnum KernelType) Self& itk::simple::BinaryMorphologicalClosingImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.voidsetSafeBorder(boolean SafeBorder) Self& itk::simple::BinaryMorphologicalClosingImageFilter::SetSafeBorder(bool SafeBorder) A safe border is added to input image to avoid borders effects and remove it once the closing is doneprotected static longtoString()std::string itk::simple::BinaryMorphologicalClosingImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFiltergetCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObjectabort, 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- 
BinaryMorphologicalClosingImageFilterprotected BinaryMorphologicalClosingImageFilter(long cPtr, boolean cMemoryOwn) 
- 
BinaryMorphologicalClosingImageFilterpublic BinaryMorphologicalClosingImageFilter()itk::simple::BinaryMorphologicalClosingImageFilter::BinaryMorphologicalClosingImageFilter() Default Constructor that takes no arguments and initializes default parameters
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ImageFilter
 
- 
deletepublic void delete()virtual itk::simple::BinaryMorphologicalClosingImageFilter::~BinaryMorphologicalClosingImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setKernelRadiusSelf& itk::simple::BinaryMorphologicalClosingImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value
- 
setKernelRadiuspublic void setKernelRadius(long value) Self& itk::simple::BinaryMorphologicalClosingImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value
- 
getKernelRadiusstd::vector<unsigned int> itk::simple::BinaryMorphologicalClosingImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.
- 
setKernelTypeSelf& itk::simple::BinaryMorphologicalClosingImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.
- 
getKernelTypeKernelEnum itk::simple::BinaryMorphologicalClosingImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.
- 
setForegroundValuepublic void setForegroundValue(double ForegroundValue) Self& itk::simple::BinaryMorphologicalClosingImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground". Defaults to maximum value of InputPixelType.
- 
getForegroundValuepublic double getForegroundValue()double itk::simple::BinaryMorphologicalClosingImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground". Defaults to maximum value of InputPixelType.
- 
setSafeBorderpublic void setSafeBorder(boolean SafeBorder) Self& itk::simple::BinaryMorphologicalClosingImageFilter::SetSafeBorder(bool SafeBorder) A safe border is added to input image to avoid borders effects and remove it once the closing is done
- 
safeBorderOnpublic void safeBorderOn()Self& itk::simple::BinaryMorphologicalClosingImageFilter::SafeBorderOn() Set the value of SafeBorder to true or false respectfully.
- 
safeBorderOffpublic void safeBorderOff()Self& itk::simple::BinaryMorphologicalClosingImageFilter::SafeBorderOff()
- 
getSafeBorderpublic boolean getSafeBorder()bool itk::simple::BinaryMorphologicalClosingImageFilter::GetSafeBorder() const A safe border is added to input image to avoid borders effects and remove it once the closing is done
- 
getNamestd::string itk::simple::BinaryMorphologicalClosingImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::BinaryMorphologicalClosingImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-