Class OpeningByReconstructionImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.OpeningByReconstructionImageFilter
Opening by reconstruction of an image.
This filter preserves regions, in the foreground, that can completely
contain the structuring element. At the same time, this filter
eliminates all other regions of foreground pixels. Contrary to the
morphological opening, the opening by reconstruction preserves the
shape of the components that are not removed by erosion. The opening
by reconstruction of an image "f" is defined as:
OpeningByReconstruction(f) = DilationByReconstruction(f, Erosion(f)).
Opening by reconstruction not only removes structures destroyed by the
erosion, but also levels down the contrast of the brightest regions.
If PreserveIntensities is on, a subsequent reconstruction by dilation
using a marker image that is the original image for all unaffected
pixels.
Opening by reconstruction is described in Chapter 6.3.9 of Pierre
Soille's book "Morphological Image Analysis: Principles and
Applications", Second Edition, Springer, 2003.
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
See:
 GrayscaleMorphologicalOpeningImageFilter
 itk::simple::OpeningByReconstruction for the procedural interface
 itk::OpeningByReconstructionImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkOpeningByReconstructionImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::OpeningByReconstructionImageFilter::OpeningByReconstructionImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedOpeningByReconstructionImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::OpeningByReconstructionImageFilter::~OpeningByReconstructionImageFilter() DestructorImage itk::simple::OpeningByReconstructionImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()voidSelf& itk::simple::OpeningByReconstructionImageFilter::FullyConnectedOff()voidSelf& itk::simple::OpeningByReconstructionImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static longbooleanbool itk::simple::OpeningByReconstructionImageFilter::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::OpeningByReconstructionImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.KernelEnum itk::simple::OpeningByReconstructionImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.getName()std::string itk::simple::OpeningByReconstructionImageFilter::GetName() const Name of this classbooleanbool itk::simple::OpeningByReconstructionImageFilter::GetPreserveIntensities() const Set/Get whether the original intensities of the image retained for those pixels unaffected by the opening by reconstruction.voidSelf& itk::simple::OpeningByReconstructionImageFilter::PreserveIntensitiesOff()voidSelf& itk::simple::OpeningByReconstructionImageFilter::PreserveIntensitiesOn() Set the value of PreserveIntensities to true or false respectfully.voidsetFullyConnected(boolean FullyConnected) Self& itk::simple::OpeningByReconstructionImageFilter::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::OpeningByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelRadius(VectorUInt32 KernelRadius) Self& itk::simple::OpeningByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelType(KernelEnum KernelType) Self& itk::simple::OpeningByReconstructionImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.voidsetPreserveIntensities(boolean PreserveIntensities) Self& itk::simple::OpeningByReconstructionImageFilter::SetPreserveIntensities(bool PreserveIntensities) Set/Get whether the original intensities of the image retained for those pixels unaffected by the opening by reconstruction.protected static longtoString()std::string itk::simple::OpeningByReconstructionImageFilter::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- 
OpeningByReconstructionImageFilterprotected OpeningByReconstructionImageFilter(long cPtr, boolean cMemoryOwn) 
- 
OpeningByReconstructionImageFilterpublic OpeningByReconstructionImageFilter()itk::simple::OpeningByReconstructionImageFilter::OpeningByReconstructionImageFilter() 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::OpeningByReconstructionImageFilter::~OpeningByReconstructionImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setKernelRadiusSelf& itk::simple::OpeningByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value
- 
setKernelRadiuspublic void setKernelRadius(long value) Self& itk::simple::OpeningByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value
- 
getKernelRadiusstd::vector<unsigned int> itk::simple::OpeningByReconstructionImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.
- 
setKernelTypeSelf& itk::simple::OpeningByReconstructionImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.
- 
getKernelTypeKernelEnum itk::simple::OpeningByReconstructionImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.
- 
setFullyConnectedpublic void setFullyConnected(boolean FullyConnected) Self& itk::simple::OpeningByReconstructionImageFilter::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::OpeningByReconstructionImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.
- 
fullyConnectedOffpublic void fullyConnectedOff()Self& itk::simple::OpeningByReconstructionImageFilter::FullyConnectedOff()
- 
getFullyConnectedpublic boolean getFullyConnected()bool itk::simple::OpeningByReconstructionImageFilter::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.
- 
setPreserveIntensitiespublic void setPreserveIntensities(boolean PreserveIntensities) Self& itk::simple::OpeningByReconstructionImageFilter::SetPreserveIntensities(bool PreserveIntensities) Set/Get whether the original intensities of the image retained for those pixels unaffected by the opening by reconstruction. If Off, the output pixel contrast will be reduced.
- 
preserveIntensitiesOnpublic void preserveIntensitiesOn()Self& itk::simple::OpeningByReconstructionImageFilter::PreserveIntensitiesOn() Set the value of PreserveIntensities to true or false respectfully.
- 
preserveIntensitiesOffpublic void preserveIntensitiesOff()Self& itk::simple::OpeningByReconstructionImageFilter::PreserveIntensitiesOff()
- 
getPreserveIntensitiespublic boolean getPreserveIntensities()bool itk::simple::OpeningByReconstructionImageFilter::GetPreserveIntensities() const Set/Get whether the original intensities of the image retained for those pixels unaffected by the opening by reconstruction. If Off, the output pixel contrast will be reduced.
- 
getNamestd::string itk::simple::OpeningByReconstructionImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::OpeningByReconstructionImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-