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 SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::VotingBinaryIterativeHoleFillingImageFilter::VotingBinaryIterativeHoleFillingImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedVotingBinaryIterativeHoleFillingImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::VotingBinaryIterativeHoleFillingImageFilter::~VotingBinaryIterativeHoleFillingImageFilter() DestructorImage itk::simple::VotingBinaryIterativeHoleFillingImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()doubledouble 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 longdoubledouble itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetForegroundValue() const Get the value associated with the Foreground (or the object) on the binary input image and the Background .longunsigned int itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetMajorityThreshold() const Majority threshold.longunsigned 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 medianvoidsetBackgroundValue(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 .voidsetForegroundValue(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 .voidsetMajorityThreshold(long MajorityThreshold) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetMajorityThreshold(unsigned int MajorityThreshold) Majority threshold.voidsetMaximumNumberOfIterations(long MaximumNumberOfIterations) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetMaximumNumberOfIterations(unsigned int MaximumNumberOfIterations) Maximum number of iterations.voidsetRadius(long value) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to valuevoidsetRadius(VectorUInt32 Radius) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to valueprotected static longtoString()std::string itk::simple::VotingBinaryIterativeHoleFillingImageFilter::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- 
VotingBinaryIterativeHoleFillingImageFilterprotected VotingBinaryIterativeHoleFillingImageFilter(long cPtr, boolean cMemoryOwn) 
- 
VotingBinaryIterativeHoleFillingImageFilterpublic VotingBinaryIterativeHoleFillingImageFilter()itk::simple::VotingBinaryIterativeHoleFillingImageFilter::VotingBinaryIterativeHoleFillingImageFilter() 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::VotingBinaryIterativeHoleFillingImageFilter::~VotingBinaryIterativeHoleFillingImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setRadiusSelf& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value
- 
setRadiuspublic void setRadius(long value) Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value
- 
getRadiusstd::vector<unsigned int> itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetRadius() const Get the radius of the neighborhood used to compute the median
- 
setMaximumNumberOfIterationspublic 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.
- 
getMaximumNumberOfIterationspublic 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.
- 
setMajorityThresholdpublic 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.
- 
getMajorityThresholdpublic 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.
- 
setForegroundValuepublic 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 .
- 
getForegroundValuepublic 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 .
- 
setBackgroundValuepublic 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 .
- 
getBackgroundValuepublic 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 .
- 
getNamestd::string itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::VotingBinaryIterativeHoleFillingImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-