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