Class BinaryDilateImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryDilateImageFilter
Fast binary dilation of a single intensity value in the image.
BinaryDilateImageFilter is a binary dilation morphologic operation on the foreground of an
image. Only the value designated by the intensity value
"SetForegroundValue()" (alias as SetDilateValue() ) is considered as
foreground, and other intensity values are considered background.
Grayscale images can be processed as binary images by selecting a
"ForegroundValue" (alias "DilateValue"). Pixel values matching the
dilate 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 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 BinaryErodeImageFilter BinaryMorphologyImageFilter
itk::simple::BinaryDilate for the procedural interface
itk::BinaryDilateImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryDilateImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::BinaryDilateImageFilter::BinaryDilateImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBinaryDilateImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoidSelf& itk::simple::BinaryDilateImageFilter::BoundaryToForegroundOff()voidSelf& itk::simple::BinaryDilateImageFilter::BoundaryToForegroundOn() Set the value of BoundaryToForeground to true or false respectfully.voiddelete()virtual itk::simple::BinaryDilateImageFilter::~BinaryDilateImageFilter() DestructorImage itk::simple::BinaryDilateImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()doubledouble itk::simple::BinaryDilateImageFilter::GetBackgroundValue() constbooleanbool itk::simple::BinaryDilateImageFilter::GetBoundaryToForeground() constprotected static longdoubledouble itk::simple::BinaryDilateImageFilter::GetForegroundValue() conststd::vector<unsigned int> itk::simple::BinaryDilateImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.KernelEnum itk::simple::BinaryDilateImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.getName()std::string itk::simple::BinaryDilateImageFilter::GetName() const Name of this classvoidsetBackgroundValue(double BackgroundValue) Self& itk::simple::BinaryDilateImageFilter::SetBackgroundValue(double BackgroundValue)voidsetBoundaryToForeground(boolean BoundaryToForeground) Self& itk::simple::BinaryDilateImageFilter::SetBoundaryToForeground(bool BoundaryToForeground)voidsetForegroundValue(double ForegroundValue) Self& itk::simple::BinaryDilateImageFilter::SetForegroundValue(double ForegroundValue)voidsetKernelRadius(long value) Self& itk::simple::BinaryDilateImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelRadius(VectorUInt32 KernelRadius) Self& itk::simple::BinaryDilateImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelType(KernelEnum KernelType) Self& itk::simple::BinaryDilateImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.protected static longtoString()std::string itk::simple::BinaryDilateImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigReleaseMethods 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
-
BinaryDilateImageFilter
protected BinaryDilateImageFilter(long cPtr, boolean cMemoryOwn) -
BinaryDilateImageFilter
public BinaryDilateImageFilter()itk::simple::BinaryDilateImageFilter::BinaryDilateImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::BinaryDilateImageFilter::~BinaryDilateImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setKernelRadius
Self& itk::simple::BinaryDilateImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
setKernelRadius
public void setKernelRadius(long value) Self& itk::simple::BinaryDilateImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
getKernelRadius
std::vector<unsigned int> itk::simple::BinaryDilateImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element. -
setKernelType
Self& itk::simple::BinaryDilateImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology. -
getKernelType
KernelEnum itk::simple::BinaryDilateImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology. -
setBackgroundValue
public void setBackgroundValue(double BackgroundValue) Self& itk::simple::BinaryDilateImageFilter::SetBackgroundValue(double BackgroundValue) -
getBackgroundValue
public double getBackgroundValue()double itk::simple::BinaryDilateImageFilter::GetBackgroundValue() const -
setForegroundValue
public void setForegroundValue(double ForegroundValue) Self& itk::simple::BinaryDilateImageFilter::SetForegroundValue(double ForegroundValue) -
getForegroundValue
public double getForegroundValue()double itk::simple::BinaryDilateImageFilter::GetForegroundValue() const -
setBoundaryToForeground
public void setBoundaryToForeground(boolean BoundaryToForeground) Self& itk::simple::BinaryDilateImageFilter::SetBoundaryToForeground(bool BoundaryToForeground) -
boundaryToForegroundOn
public void boundaryToForegroundOn()Self& itk::simple::BinaryDilateImageFilter::BoundaryToForegroundOn() Set the value of BoundaryToForeground to true or false respectfully. -
boundaryToForegroundOff
public void boundaryToForegroundOff()Self& itk::simple::BinaryDilateImageFilter::BoundaryToForegroundOff() -
getBoundaryToForeground
public boolean getBoundaryToForeground()bool itk::simple::BinaryDilateImageFilter::GetBoundaryToForeground() const -
getName
std::string itk::simple::BinaryDilateImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::BinaryDilateImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-