Class BinaryOpeningByReconstructionImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryOpeningByReconstructionImageFilter
binary morphological closing of an image.
This filter removes small (i.e., smaller than the structuring element)
objects in the image. It is defined as: Opening(f) =
ReconstructionByDilatation(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.
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
 This implementation was taken from the Insight Journal paper: https://doi.org/10.54294/q6auw4
See:
 MorphologyImageFilter , OpeningByReconstructionImageFilter , BinaryClosingByReconstructionImageFilter
 itk::simple::BinaryOpeningByReconstruction for the procedural interface
 itk::BinaryOpeningByReconstructionImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryOpeningByReconstructionImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::BinaryOpeningByReconstructionImageFilter::BinaryOpeningByReconstructionImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBinaryOpeningByReconstructionImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::BinaryOpeningByReconstructionImageFilter::~BinaryOpeningByReconstructionImageFilter() DestructorImage itk::simple::BinaryOpeningByReconstructionImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()voidSelf& itk::simple::BinaryOpeningByReconstructionImageFilter::FullyConnectedOff()voidSelf& itk::simple::BinaryOpeningByReconstructionImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.doubledouble itk::simple::BinaryOpeningByReconstructionImageFilter::GetBackgroundValue() const Set the value in eroded part of the image.protected static longdoubledouble itk::simple::BinaryOpeningByReconstructionImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground".booleanbool itk::simple::BinaryOpeningByReconstructionImageFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.std::vector<unsigned int> itk::simple::BinaryOpeningByReconstructionImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.KernelEnum itk::simple::BinaryOpeningByReconstructionImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.getName()std::string itk::simple::BinaryOpeningByReconstructionImageFilter::GetName() const Name of this classvoidsetBackgroundValue(double BackgroundValue) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::SetBackgroundValue(double BackgroundValue) Set the value in eroded part of the image.voidsetForegroundValue(double ForegroundValue) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground".voidsetFullyConnected(boolean FullyConnected) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.voidsetKernelRadius(long value) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelRadius(VectorUInt32 KernelRadius) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelType(KernelEnum KernelType) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.protected static longtoString()std::string itk::simple::BinaryOpeningByReconstructionImageFilter::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- 
BinaryOpeningByReconstructionImageFilterprotected BinaryOpeningByReconstructionImageFilter(long cPtr, boolean cMemoryOwn) 
- 
BinaryOpeningByReconstructionImageFilterpublic BinaryOpeningByReconstructionImageFilter()itk::simple::BinaryOpeningByReconstructionImageFilter::BinaryOpeningByReconstructionImageFilter() 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::BinaryOpeningByReconstructionImageFilter::~BinaryOpeningByReconstructionImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setKernelRadiusSelf& itk::simple::BinaryOpeningByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value
- 
setKernelRadiuspublic void setKernelRadius(long value) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value
- 
getKernelRadiusstd::vector<unsigned int> itk::simple::BinaryOpeningByReconstructionImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.
- 
setKernelTypeSelf& itk::simple::BinaryOpeningByReconstructionImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.
- 
getKernelTypeKernelEnum itk::simple::BinaryOpeningByReconstructionImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.
- 
setForegroundValuepublic void setForegroundValue(double ForegroundValue) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground". Defaults to maximum value of PixelType.
- 
getForegroundValuepublic double getForegroundValue()double itk::simple::BinaryOpeningByReconstructionImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground". Defaults to maximum value of PixelType.
- 
setBackgroundValuepublic void setBackgroundValue(double BackgroundValue) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::SetBackgroundValue(double BackgroundValue) Set the value in eroded part of the image. Defaults to zero
- 
getBackgroundValuepublic double getBackgroundValue()double itk::simple::BinaryOpeningByReconstructionImageFilter::GetBackgroundValue() const Set the value in eroded part of the image. Defaults to zero
- 
setFullyConnectedpublic void setFullyConnected(boolean FullyConnected) Self& itk::simple::BinaryOpeningByReconstructionImageFilter::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.
- 
fullyConnectedOnpublic void fullyConnectedOn()Self& itk::simple::BinaryOpeningByReconstructionImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.
- 
fullyConnectedOffpublic void fullyConnectedOff()Self& itk::simple::BinaryOpeningByReconstructionImageFilter::FullyConnectedOff()
- 
getFullyConnectedpublic boolean getFullyConnected()bool itk::simple::BinaryOpeningByReconstructionImageFilter::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.
- 
getNamestd::string itk::simple::BinaryOpeningByReconstructionImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::BinaryOpeningByReconstructionImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-