Package org.itk.simple
Class VotingBinaryIterativeHoleFillingImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.VotingBinaryIterativeHoleFillingImageFilter
Fills in holes and cavities by iteratively applying a voting
operation.
This filter uses internally the VotingBinaryHoleFillingImageFilter , and runs it iteratively until no pixels are being changed or until
it reaches the maximum number of iterations. The purpose of the filter
is to fill in holes of medium size (tens of pixels in radius). In
principle the number of iterations is related to the size of the holes
to be filled in. The larger the holes, the more iteration must be run
with this filter in order to fill in the full hole. The size of the
neighborhood is also related to the curvature of the hole borders and
therefore the hole size. Note that as a collateral effect this filter
may also fill in cavities in the external side of structures.
This filter is templated over a single image type because the output
image type must be the same as the input image type. This is required
in order to make the iterations possible, since the output image of
one iteration is taken as the input image for the next iteration.
See:
Image
VotingBinaryImageFilter
VotingBinaryHoleFillingImageFilter
Neighborhood
NeighborhoodOperator
NeighborhoodIterator
itk::simple::VotingBinaryIterativeHoleFilling for the procedural interface
itk::VotingBinaryIterativeHoleFillingImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkVotingBinaryIterativeHoleFillingImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::VotingBinaryIterativeHoleFillingImageFilter::VotingBinaryIterativeHoleFillingImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
VotingBinaryIterativeHoleFillingImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::VotingBinaryIterativeHoleFillingImageFilter::~VotingBinaryIterativeHoleFillingImageFilter() DestructorImage itk::simple::VotingBinaryIterativeHoleFillingImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
double
double itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetBackgroundValue() const Get the value associated with the Foreground (or the object) on the binary input image and the Background .protected static long
double
double itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetForegroundValue() const Get the value associated with the Foreground (or the object) on the binary input image and the Background .long
unsigned int itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetMajorityThreshold() const Majority threshold.long
unsigned int itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetMaximumNumberOfIterations() const Maximum number of iterations.getName()
std::string itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetName() const Name of this classstd::vector<unsigned int> itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetRadius() const Get the radius of the neighborhood used to compute the medianvoid
setBackgroundValue
(double BackgroundValue) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetBackgroundValue(double BackgroundValue) Set the value associated with the Foreground (or the object) on the binary input image and the Background .void
setForegroundValue
(double ForegroundValue) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetForegroundValue(double ForegroundValue) Set the value associated with the Foreground (or the object) on the binary input image and the Background .void
setMajorityThreshold
(long MajorityThreshold) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetMajorityThreshold(unsigned int MajorityThreshold) Majority threshold.void
setMaximumNumberOfIterations
(long MaximumNumberOfIterations) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetMaximumNumberOfIterations(unsigned int MaximumNumberOfIterations) Maximum number of iterations.void
setRadius
(long value) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to valuevoid
setRadius
(VectorUInt32 Radius) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to valueprotected static long
toString()
std::string itk::simple::VotingBinaryIterativeHoleFillingImageFilter::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
-
VotingBinaryIterativeHoleFillingImageFilter
protected VotingBinaryIterativeHoleFillingImageFilter(long cPtr, boolean cMemoryOwn) -
VotingBinaryIterativeHoleFillingImageFilter
public VotingBinaryIterativeHoleFillingImageFilter()itk::simple::VotingBinaryIterativeHoleFillingImageFilter::VotingBinaryIterativeHoleFillingImageFilter() 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::VotingBinaryIterativeHoleFillingImageFilter::~VotingBinaryIterativeHoleFillingImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setRadius
Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value -
setRadius
public void setRadius(long value) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value -
getRadius
std::vector<unsigned int> itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetRadius() const Get the radius of the neighborhood used to compute the median -
setMaximumNumberOfIterations
public void setMaximumNumberOfIterations(long MaximumNumberOfIterations) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetMaximumNumberOfIterations(unsigned int MaximumNumberOfIterations) Maximum number of iterations. This filter is executed iteratively as long as at least one pixel has changed in a previous iteration, or until the maximum number of iterations has been reached. -
getMaximumNumberOfIterations
public long getMaximumNumberOfIterations()unsigned int itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetMaximumNumberOfIterations() const Maximum number of iterations. This filter is executed iteratively as long as at least one pixel has changed in a previous iteration, or until the maximum number of iterations has been reached. -
setMajorityThreshold
public void setMajorityThreshold(long MajorityThreshold) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetMajorityThreshold(unsigned int MajorityThreshold) Majority threshold. It is the number of pixels over 50% that will decide whether an OFF pixel will become ON or not. For example, if the neighborhood of a pixel has 124 pixels (excluding itself), the 50% will be 62, and if you set up a Majority threshold of 5, that means that the filter will require 67 or more neighbor pixels to be ON in order to switch the current OFF pixel to ON. The default value is 1. -
getMajorityThreshold
public long getMajorityThreshold()unsigned int itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetMajorityThreshold() const Majority threshold. It is the number of pixels over 50% that will decide whether an OFF pixel will become ON or not. For example, if the neighborhood of a pixel has 124 pixels (excluding itself), the 50% will be 62, and if you set up a Majority threshold of 5, that means that the filter will require 67 or more neighbor pixels to be ON in order to switch the current OFF pixel to ON. The default value is 1. -
setForegroundValue
public void setForegroundValue(double ForegroundValue) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::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::VotingBinaryIterativeHoleFillingImageFilter::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::VotingBinaryIterativeHoleFillingImageFilter::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::VotingBinaryIterativeHoleFillingImageFilter::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::VotingBinaryIterativeHoleFillingImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::VotingBinaryIterativeHoleFillingImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::VotingBinaryIterativeHoleFillingImageFilter::Execute(const Image &image1) Execute the filter on the input image
-