Class BlackTopHatImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BlackTopHatImageFilter
Black top hat extracts local minima that are smaller than the
structuring element.
Black top hat extracts local minima that are smaller than the
structuring element. It subtracts the background from the input image.
The output of the filter transforms the black valleys into white
peaks.
Top-hats are described in Chapter 4.5 of Pierre Soille's book
"Morphological Image Analysis: Principles and Applications", Second
Edition, Springer, 2003.
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
See:
itk::simple::BlackTopHat for the procedural interface
itk::BlackTopHatImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBlackTopHatImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::BlackTopHatImageFilter::BlackTopHatImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBlackTopHatImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::BlackTopHatImageFilter::~BlackTopHatImageFilter() DestructorImage itk::simple::BlackTopHatImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()protected static longstd::vector<unsigned int> itk::simple::BlackTopHatImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.KernelEnum itk::simple::BlackTopHatImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.getName()std::string itk::simple::BlackTopHatImageFilter::GetName() const Name of this classbooleanbool itk::simple::BlackTopHatImageFilter::GetSafeBorder() const A safe border is added to input image to avoid borders effects and remove it once the closing is donevoidSelf& itk::simple::BlackTopHatImageFilter::SafeBorderOff()voidSelf& itk::simple::BlackTopHatImageFilter::SafeBorderOn() Set the value of SafeBorder to true or false respectfully.voidsetKernelRadius(long value) Self& itk::simple::BlackTopHatImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelRadius(VectorUInt32 KernelRadius) Self& itk::simple::BlackTopHatImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to valuevoidsetKernelType(KernelEnum KernelType) Self& itk::simple::BlackTopHatImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.voidsetSafeBorder(boolean SafeBorder) Self& itk::simple::BlackTopHatImageFilter::SetSafeBorder(bool SafeBorder) A safe border is added to input image to avoid borders effects and remove it once the closing is doneprotected static longtoString()std::string itk::simple::BlackTopHatImageFilter::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
-
BlackTopHatImageFilter
protected BlackTopHatImageFilter(long cPtr, boolean cMemoryOwn) -
BlackTopHatImageFilter
public BlackTopHatImageFilter()itk::simple::BlackTopHatImageFilter::BlackTopHatImageFilter() 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::BlackTopHatImageFilter::~BlackTopHatImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setKernelRadius
Self& itk::simple::BlackTopHatImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
setKernelRadius
public void setKernelRadius(long value) Self& itk::simple::BlackTopHatImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value -
getKernelRadius
std::vector<unsigned int> itk::simple::BlackTopHatImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element. -
setKernelType
Self& itk::simple::BlackTopHatImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology. -
getKernelType
KernelEnum itk::simple::BlackTopHatImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology. -
setSafeBorder
public void setSafeBorder(boolean SafeBorder) Self& itk::simple::BlackTopHatImageFilter::SetSafeBorder(bool SafeBorder) A safe border is added to input image to avoid borders effects and remove it once the closing is done -
safeBorderOn
public void safeBorderOn()Self& itk::simple::BlackTopHatImageFilter::SafeBorderOn() Set the value of SafeBorder to true or false respectfully. -
safeBorderOff
public void safeBorderOff()Self& itk::simple::BlackTopHatImageFilter::SafeBorderOff() -
getSafeBorder
public boolean getSafeBorder()bool itk::simple::BlackTopHatImageFilter::GetSafeBorder() const A safe border is added to input image to avoid borders effects and remove it once the closing is done -
getName
std::string itk::simple::BlackTopHatImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::BlackTopHatImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-