Package org.itk.simple
Class BinaryClosingByReconstructionImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryClosingByReconstructionImageFilter
binary closing by reconstruction of an image.
This filter removes small (i.e., smaller than the structuring element)
holes in the image. It is defined as: Closing(f) =
ReconstructionByErosion(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.
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://www.insight-journal.org/browse/publication/176
See:
MorphologyImageFilter , ClosingByReconstructionImageFilter , BinaryOpeningByReconstructionImageFilter
itk::simple::BinaryClosingByReconstruction for the procedural interface
itk::BinaryClosingByReconstructionImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryClosingByReconstructionImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::BinaryClosingByReconstructionImageFilter::BinaryClosingByReconstructionImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
BinaryClosingByReconstructionImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::BinaryClosingByReconstructionImageFilter::~BinaryClosingByReconstructionImageFilter() DestructorImage itk::simple::BinaryClosingByReconstructionImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
void
Self& itk::simple::BinaryClosingByReconstructionImageFilter::FullyConnectedOff()void
Self& itk::simple::BinaryClosingByReconstructionImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static long
double
double itk::simple::BinaryClosingByReconstructionImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground".boolean
bool itk::simple::BinaryClosingByReconstructionImageFilter::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::BinaryClosingByReconstructionImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.KernelEnum itk::simple::BinaryClosingByReconstructionImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.getName()
std::string itk::simple::BinaryClosingByReconstructionImageFilter::GetName() const Name of this classvoid
setForegroundValue
(double ForegroundValue) Self& itk::simple::BinaryClosingByReconstructionImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground".void
setFullyConnected
(boolean FullyConnected) Self& itk::simple::BinaryClosingByReconstructionImageFilter::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::BinaryClosingByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoid
setKernelRadius
(VectorUInt32 KernelRadius) Self& itk::simple::BinaryClosingByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoid
setKernelType
(KernelEnum KernelType) Self& itk::simple::BinaryClosingByReconstructionImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.protected static long
toString()
std::string itk::simple::BinaryClosingByReconstructionImageFilter::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
-
BinaryClosingByReconstructionImageFilter
protected BinaryClosingByReconstructionImageFilter(long cPtr, boolean cMemoryOwn) -
BinaryClosingByReconstructionImageFilter
public BinaryClosingByReconstructionImageFilter()itk::simple::BinaryClosingByReconstructionImageFilter::BinaryClosingByReconstructionImageFilter() 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::BinaryClosingByReconstructionImageFilter::~BinaryClosingByReconstructionImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setKernelRadius
Self& itk::simple::BinaryClosingByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
setKernelRadius
public void setKernelRadius(long value) Self& itk::simple::BinaryClosingByReconstructionImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
getKernelRadius
std::vector<unsigned int> itk::simple::BinaryClosingByReconstructionImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element. -
setKernelType
Self& itk::simple::BinaryClosingByReconstructionImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology. -
getKernelType
KernelEnum itk::simple::BinaryClosingByReconstructionImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology. -
setForegroundValue
public void setForegroundValue(double ForegroundValue) Self& itk::simple::BinaryClosingByReconstructionImageFilter::SetForegroundValue(double ForegroundValue) Set the value in the image to consider as "foreground". Defaults to maximum value of InputPixelType. -
getForegroundValue
public double getForegroundValue()double itk::simple::BinaryClosingByReconstructionImageFilter::GetForegroundValue() const Get the value in the image considered as "foreground". Defaults to maximum value of InputPixelType. -
setFullyConnected
public void setFullyConnected(boolean FullyConnected) Self& itk::simple::BinaryClosingByReconstructionImageFilter::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::BinaryClosingByReconstructionImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully. -
fullyConnectedOff
public void fullyConnectedOff()Self& itk::simple::BinaryClosingByReconstructionImageFilter::FullyConnectedOff() -
getFullyConnected
public boolean getFullyConnected()bool itk::simple::BinaryClosingByReconstructionImageFilter::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. -
getName
std::string itk::simple::BinaryClosingByReconstructionImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::BinaryClosingByReconstructionImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::BinaryClosingByReconstructionImageFilter::Execute(const Image &image1) Execute the filter on the input image
-