Remove local minima not connected to the boundary of the image.
GrayscaleFillholeImageFilter fills holes in a grayscale image. Holes are local minima in the grayscale topography that are not connected to boundaries of the image. Gray level values adjacent to a hole are extrapolated across the hole.
This filter is used to smooth over local minima without affecting the values of local maxima. If you take the difference between the output of this filter and the original image (and perhaps threshold the difference above a small value), you'll obtain a map of the local minima.
This filter uses the ReconstructionByErosionImageFilter . It provides its own input as the "mask" input to the geodesic erosion. The "marker" image for the geodesic erosion is constructed such that boundary pixels match the boundary pixels of the input image and the interior pixels are set to the maximum pixel value in the input image.
Geodesic morphology and the Fillhole algorithm is described in Chapter 6 of Pierre Soille's book "Morphological Image Analysis:
Principles and Applications", Second Edition, Springer, 2003.
- See also
- ReconstructionByErosionImageFilter
-
MorphologyImageFilter , GrayscaleErodeImageFilter , GrayscaleFunctionErodeImageFilter , BinaryErodeImageFilter
-
itk::simple::GrayscaleFillhole for the procedural interface
-
itk::GrayscaleFillholeImageFilter for the Doxygen on the original ITK class.
Definition at line 53 of file sitkGrayscaleFillholeImageFilter.h.
|
static bool | GetGlobalDefaultDebug () |
|
static void | GlobalDefaultDebugOff () |
|
static void | GlobalDefaultDebugOn () |
|
static void | SetGlobalDefaultDebug (bool debugFlag) |
|
static void | GlobalWarningDisplayOn () |
|
static void | GlobalWarningDisplayOff () |
|
static void | SetGlobalWarningDisplay (bool flag) |
|
static bool | GetGlobalWarningDisplay () |
|
static double | GetGlobalDefaultCoordinateTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultCoordinateTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
static double | GetGlobalDefaultDirectionTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultDirectionTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
static bool | SetGlobalDefaultThreader (const std::string &threader) |
| Set/Get the default threader used for process objects. More...
|
|
static std::string | GetGlobalDefaultThreader () |
| Set/Get the default threader used for process objects. More...
|
|
static void | SetGlobalDefaultNumberOfThreads (unsigned int n) |
|
static unsigned int | GetGlobalDefaultNumberOfThreads () |
| Set/Get the default threader used for process objects. More...
|
|
void | CheckImageMatchingDimension (const Image &image1, const Image &image2, const std::string &image2Name) |
|
void | CheckImageMatchingPixelType (const Image &image1, const Image &image2, const std::string &image2Name) |
|
void | CheckImageMatchingSize (const Image &image1, const Image &image2, const std::string &image2Name) |
|
virtual unsigned long | AddITKObserver (const itk::EventObject &, itk::Command *) |
|
virtual itk::ProcessObject * | GetActiveProcess () |
|
virtual void | OnActiveProcessDelete () |
|
virtual void | onCommandDelete (const itk::simple::Command *cmd) noexcept |
|
virtual void | PreUpdate (itk::ProcessObject *p) |
|
virtual void | RemoveITKObserver (EventCommand &e) |
|
| NonCopyable ()=default |
|
| NonCopyable (const NonCopyable &)=delete |
|
NonCopyable & | operator= (const NonCopyable &)=delete |
|
template<class TImageType > |
static void | FixNonZeroIndex (TImageType *img) |
|
template<class TImageType > |
static TImageType::ConstPointer | CastImageToITK (const Image &img) |
|
template<class TPixelType , unsigned int VImageDimension, unsigned int VLength, template< typename, unsigned int > class TVector> |
static Image | CastITKToImage (itk::Image< TVector< TPixelType, VLength >, VImageDimension > *img) |
|
template<unsigned int VImageDimension, unsigned int VLength, template< unsigned int > class TVector> |
static Image | CastITKToImage (itk::Image< TVector< VLength >, VImageDimension > *img) |
|
template<class TImageType > |
static Image | CastITKToImage (TImageType *img) |
|
static const itk::EventObject & | GetITKEventObject (EventEnum e) |
|
template<typename T > |
static std::ostream & | ToStringHelper (std::ostream &os, const T &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const signed char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const unsigned char &v) |
|