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 Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::BinaryMedianImageFilter::BinaryMedianImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBinaryMedianImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier 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.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
-
BinaryMedianImageFilter
protected BinaryMedianImageFilter(long cPtr, boolean cMemoryOwn) -
BinaryMedianImageFilter
public BinaryMedianImageFilter()itk::simple::BinaryMedianImageFilter::BinaryMedianImageFilter() 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::BinaryMedianImageFilter::~BinaryMedianImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setRadius
Self& itk::simple::BinaryMedianImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value -
setRadius
public void setRadius(long value) Self& itk::simple::BinaryMedianImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value -
getRadius
std::vector<unsigned int> itk::simple::BinaryMedianImageFilter::GetRadius() const Get the radius of the neighborhood used to compute the median -
setForegroundValue
public 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 . -
getForegroundValue
public 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 . -
setBackgroundValue
public 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 . -
getBackgroundValue
public 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 . -
getName
std::string itk::simple::BinaryMedianImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::BinaryMedianImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-