19 #ifndef MIRTK_Erosion_H 20 #define MIRTK_Erosion_H 22 #include "mirtk/ImageToImage.h" 24 #include "mirtk/Assert.h" 25 #include "mirtk/NeighborhoodOffsets.h" 34 template <
class TVoxel>
37 mirtkImageFilterMacro(
Erosion, TVoxel);
65 template <
class TVoxel>
69 mirtkAssert(im !=
nullptr,
"template function called with correct type");
71 erosion.Connectivity(connectivity);
74 for (
int i = 0; i < iterations; ++i) erosion.
Run();
80 #endif // MIRTK_Erosion_H
virtual void Run()
Run erosion.
virtual ~Erosion()
Destructor.
ConnectivityType
Type of image connectivity, i.e., number of neighbors for each voxel.
virtual void Initialize()
Initialize the filter.