Package org.itk.simple
Class ClosingByReconstructionImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.ClosingByReconstructionImageFilter
Closing by reconstruction of an image.
This filter is similar to the morphological closing, but contrary to
the morphological closing, the closing by reconstruction preserves the
shape of the components. The closing by reconstruction of an image
"f" is defined as:
ClosingByReconstruction(f) = ErosionByReconstruction(f, Dilation(f)).
Closing by reconstruction not only preserves structures preserved by
the dilation, but also levels raises the contrast of the darkest
regions. If PreserveIntensities is on, a subsequent reconstruction by
dilation using a marker image that is the original image for all
unaffected pixels.
Closing 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:
GrayscaleMorphologicalClosingImageFilter
itk::simple::ClosingByReconstruction for the procedural interface
itk::ClosingByReconstructionImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkClosingByReconstructionImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::ClosingByReconstructionImageFilter::ClosingByReconstructionImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
ClosingByReconstructionImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::ClosingByReconstructionImageFilter::~ClosingByReconstructionImageFilter() DestructorImage itk::simple::ClosingByReconstructionImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
void
Self& itk::simple::ClosingByReconstructionImageFilter::FullyConnectedOff()void
Self& itk::simple::ClosingByReconstructionImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static long
boolean
bool itk::simple::ClosingByReconstructionImageFilter::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::ClosingByReconstructionImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.KernelEnum itk::simple::ClosingByReconstructionImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.getName()
std::string itk::simple::ClosingByReconstructionImageFilter::GetName() const Name of this classboolean
bool itk::simple::ClosingByReconstructionImageFilter::GetPreserveIntensities() const Set/Get whether the original intensities of the image retained for those pixels unaffected by the opening by reconstruction.void
Self& itk::simple::ClosingByReconstructionImageFilter::PreserveIntensitiesOff()void
Self& itk::simple::ClosingByReconstructionImageFilter::PreserveIntensitiesOn() Set the value of PreserveIntensities to true or false respectfully.void
setFullyConnected
(boolean FullyConnected) Self& itk::simple::ClosingByReconstructionImageFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.void
setKernelRadius
(long value) Self& itk::simple::ClosingByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoid
setKernelRadius
(VectorUInt32 KernelRadius) Self& itk::simple::ClosingByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoid
setKernelType
(KernelEnum KernelType) Self& itk::simple::ClosingByReconstructionImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.void
setPreserveIntensities
(boolean PreserveIntensities) Self& itk::simple::ClosingByReconstructionImageFilter::SetPreserveIntensities(bool PreserveIntensities) Set/Get whether the original intensities of the image retained for those pixels unaffected by the opening by reconstruction.protected static long
toString()
std::string itk::simple::ClosingByReconstructionImageFilter::ToString() const Print ourselves outMethods 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
-
ClosingByReconstructionImageFilter
protected ClosingByReconstructionImageFilter(long cPtr, boolean cMemoryOwn) -
ClosingByReconstructionImageFilter
public ClosingByReconstructionImageFilter()itk::simple::ClosingByReconstructionImageFilter::ClosingByReconstructionImageFilter() 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::ClosingByReconstructionImageFilter::~ClosingByReconstructionImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setKernelRadius
Self& itk::simple::ClosingByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
setKernelRadius
public void setKernelRadius(long value) Self& itk::simple::ClosingByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
getKernelRadius
std::vector<unsigned int> itk::simple::ClosingByReconstructionImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element. -
setKernelType
Self& itk::simple::ClosingByReconstructionImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology. -
getKernelType
KernelEnum itk::simple::ClosingByReconstructionImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology. -
setFullyConnected
public void setFullyConnected(boolean FullyConnected) Self& itk::simple::ClosingByReconstructionImageFilter::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. -
fullyConnectedOn
public void fullyConnectedOn()Self& itk::simple::ClosingByReconstructionImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully. -
fullyConnectedOff
public void fullyConnectedOff()Self& itk::simple::ClosingByReconstructionImageFilter::FullyConnectedOff() -
getFullyConnected
public boolean getFullyConnected()bool itk::simple::ClosingByReconstructionImageFilter::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. -
setPreserveIntensities
public void setPreserveIntensities(boolean PreserveIntensities) Self& itk::simple::ClosingByReconstructionImageFilter::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. -
preserveIntensitiesOn
public void preserveIntensitiesOn()Self& itk::simple::ClosingByReconstructionImageFilter::PreserveIntensitiesOn() Set the value of PreserveIntensities to true or false respectfully. -
preserveIntensitiesOff
public void preserveIntensitiesOff()Self& itk::simple::ClosingByReconstructionImageFilter::PreserveIntensitiesOff() -
getPreserveIntensities
public boolean getPreserveIntensities()bool itk::simple::ClosingByReconstructionImageFilter::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. -
getName
std::string itk::simple::ClosingByReconstructionImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::ClosingByReconstructionImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::ClosingByReconstructionImageFilter::Execute(const Image &image1) Execute the filter on the input image
-