Package org.itk.simple
Class BinaryErodeImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryErodeImageFilter
Fast binary erosion of a single intensity value in the image.
BinaryErodeImageFilter is a binary erosion morphologic operation on the foreground of an
image. Only the value designated by the intensity value
"SetForegroundValue()" (alias as SetErodeValue() ) is considered as
foreground, and other intensity values are considered background.
Grayscale images can be processed as binary images by selecting a
"ForegroundValue" (alias "ErodeValue"). Pixel values matching the
erode value are considered the "foreground" and all other pixels are
"background". This is useful in processing segmented images where
all pixels in segment #1 have value 1 and pixels in segment #2 have
value 2, etc. A particular "segment number" can be processed.
ForegroundValue defaults to the maximum possible value of the
PixelType. The eroded pixels will receive the BackgroundValue
(defaults to NumericTraits::NonpositiveMin() ).
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. A reasonable
choice of structuring element is itk::BinaryBallStructuringElement .
This implementation is based on the papers:
L.Vincent "Morphological transformations of binary images with
arbitrary structuring elements", and
N.Nikopoulos et al. "An efficient algorithm for 3d binary
morphological transformations with 3d structuring elements for
arbitrary size and shape". IEEE Transactions on Image Processing. Vol. 9. No. 3. 2000. pp. 283-286.
See:
ImageToImageFilter BinaryDilateImageFilter BinaryMorphologyImageFilter
itk::simple::BinaryErode for the procedural interface
itk::BinaryErodeImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryErodeImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::BinaryErodeImageFilter::BinaryErodeImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
BinaryErodeImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Self& itk::simple::BinaryErodeImageFilter::BoundaryToForegroundOff()void
Self& itk::simple::BinaryErodeImageFilter::BoundaryToForegroundOn() Set the value of BoundaryToForeground to true or false respectfully.void
delete()
virtual itk::simple::BinaryErodeImageFilter::~BinaryErodeImageFilter() DestructorImage itk::simple::BinaryErodeImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
double
double itk::simple::BinaryErodeImageFilter::GetBackgroundValue() constboolean
bool itk::simple::BinaryErodeImageFilter::GetBoundaryToForeground() constprotected static long
double
double itk::simple::BinaryErodeImageFilter::GetForegroundValue() conststd::vector<unsigned int> itk::simple::BinaryErodeImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.KernelEnum itk::simple::BinaryErodeImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.getName()
std::string itk::simple::BinaryErodeImageFilter::GetName() const Name of this classvoid
setBackgroundValue
(double BackgroundValue) Self& itk::simple::BinaryErodeImageFilter::SetBackgroundValue(double BackgroundValue)void
setBoundaryToForeground
(boolean BoundaryToForeground) Self& itk::simple::BinaryErodeImageFilter::SetBoundaryToForeground(bool BoundaryToForeground)void
setForegroundValue
(double ForegroundValue) Self& itk::simple::BinaryErodeImageFilter::SetForegroundValue(double ForegroundValue)void
setKernelRadius
(long value) Self& itk::simple::BinaryErodeImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoid
setKernelRadius
(VectorUInt32 KernelRadius) Self& itk::simple::BinaryErodeImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoid
setKernelType
(KernelEnum KernelType) Self& itk::simple::BinaryErodeImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.protected static long
toString()
std::string itk::simple::BinaryErodeImageFilter::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
-
BinaryErodeImageFilter
protected BinaryErodeImageFilter(long cPtr, boolean cMemoryOwn) -
BinaryErodeImageFilter
public BinaryErodeImageFilter()itk::simple::BinaryErodeImageFilter::BinaryErodeImageFilter() 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::BinaryErodeImageFilter::~BinaryErodeImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setKernelRadius
Self& itk::simple::BinaryErodeImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
setKernelRadius
public void setKernelRadius(long value) Self& itk::simple::BinaryErodeImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
getKernelRadius
std::vector<unsigned int> itk::simple::BinaryErodeImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element. -
setKernelType
Self& itk::simple::BinaryErodeImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology. -
getKernelType
KernelEnum itk::simple::BinaryErodeImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology. -
setBackgroundValue
public void setBackgroundValue(double BackgroundValue) Self& itk::simple::BinaryErodeImageFilter::SetBackgroundValue(double BackgroundValue) -
getBackgroundValue
public double getBackgroundValue()double itk::simple::BinaryErodeImageFilter::GetBackgroundValue() const -
setForegroundValue
public void setForegroundValue(double ForegroundValue) Self& itk::simple::BinaryErodeImageFilter::SetForegroundValue(double ForegroundValue) -
getForegroundValue
public double getForegroundValue()double itk::simple::BinaryErodeImageFilter::GetForegroundValue() const -
setBoundaryToForeground
public void setBoundaryToForeground(boolean BoundaryToForeground) Self& itk::simple::BinaryErodeImageFilter::SetBoundaryToForeground(bool BoundaryToForeground) -
boundaryToForegroundOn
public void boundaryToForegroundOn()Self& itk::simple::BinaryErodeImageFilter::BoundaryToForegroundOn() Set the value of BoundaryToForeground to true or false respectfully. -
boundaryToForegroundOff
public void boundaryToForegroundOff()Self& itk::simple::BinaryErodeImageFilter::BoundaryToForegroundOff() -
getBoundaryToForeground
public boolean getBoundaryToForeground()bool itk::simple::BinaryErodeImageFilter::GetBoundaryToForeground() const -
getName
std::string itk::simple::BinaryErodeImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::BinaryErodeImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::BinaryErodeImageFilter::Execute(const Image &image1) Execute the filter on the input image
-