Class BinaryMedianImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryMedianImageFilter
Applies a version of the median filter optimized for binary images.
This filter was contributed by Bjorn Hanch Sollie after identifying
that the generic Median filter performed unnecessary operations when
the input image is binary.
This filter computes an image where a given pixel is the median value
of the pixels in a neighborhood about the corresponding input pixel.
For the case of binary images the median can be obtained by simply
counting the neighbors that are foreground.
A median filter is one of the family of nonlinear filters. It is used
to smooth an image without being biased by outliers or shot noise.
See:
 Image
 Neighborhood
 NeighborhoodOperator
 NeighborhoodIterator
 itk::simple::BinaryMedian for the procedural interface
 itk::BinaryMedianImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryMedianImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::BinaryMedianImageFilter::BinaryMedianImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBinaryMedianImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::BinaryMedianImageFilter::~BinaryMedianImageFilter() DestructorImage itk::simple::BinaryMedianImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()doubledouble itk::simple::BinaryMedianImageFilter::GetBackgroundValue() const Get the value associated with the Foreground (or the object) on the binary input image and the Background .protected static longdoubledouble itk::simple::BinaryMedianImageFilter::GetForegroundValue() const Get the value associated with the Foreground (or the object) on the binary input image and the Background .getName()std::string itk::simple::BinaryMedianImageFilter::GetName() const Name of this classstd::vector<unsigned int> itk::simple::BinaryMedianImageFilter::GetRadius() const Get the radius of the neighborhood used to compute the medianvoidsetBackgroundValue(double BackgroundValue) Self& itk::simple::BinaryMedianImageFilter::SetBackgroundValue(double BackgroundValue) Set the value associated with the Foreground (or the object) on the binary input image and the Background .voidsetForegroundValue(double ForegroundValue) Self& itk::simple::BinaryMedianImageFilter::SetForegroundValue(double ForegroundValue) Set the value associated with the Foreground (or the object) on the binary input image and the Background .voidsetRadius(long value) Self& itk::simple::BinaryMedianImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to valuevoidsetRadius(VectorUInt32 Radius) Self& itk::simple::BinaryMedianImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to valueprotected static longtoString()std::string itk::simple::BinaryMedianImageFilter::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- 
BinaryMedianImageFilterprotected BinaryMedianImageFilter(long cPtr, boolean cMemoryOwn) 
- 
BinaryMedianImageFilterpublic BinaryMedianImageFilter()itk::simple::BinaryMedianImageFilter::BinaryMedianImageFilter() 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::BinaryMedianImageFilter::~BinaryMedianImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setRadiusSelf& itk::simple::BinaryMedianImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value
- 
setRadiuspublic void setRadius(long value) Self& itk::simple::BinaryMedianImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value
- 
getRadiusstd::vector<unsigned int> itk::simple::BinaryMedianImageFilter::GetRadius() const Get the radius of the neighborhood used to compute the median
- 
setForegroundValuepublic void setForegroundValue(double ForegroundValue) Self& itk::simple::BinaryMedianImageFilter::SetForegroundValue(double ForegroundValue) Set the value associated with the Foreground (or the object) on the binary input image and the Background .
- 
getForegroundValuepublic double getForegroundValue()double itk::simple::BinaryMedianImageFilter::GetForegroundValue() const Get the value associated with the Foreground (or the object) on the binary input image and the Background .
- 
setBackgroundValuepublic void setBackgroundValue(double BackgroundValue) Self& itk::simple::BinaryMedianImageFilter::SetBackgroundValue(double BackgroundValue) Set the value associated with the Foreground (or the object) on the binary input image and the Background .
- 
getBackgroundValuepublic double getBackgroundValue()double itk::simple::BinaryMedianImageFilter::GetBackgroundValue() const Get the value associated with the Foreground (or the object) on the binary input image and the Background .
- 
getNamestd::string itk::simple::BinaryMedianImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::BinaryMedianImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-