20 #ifndef MIRTK_Closing_H 21 #define MIRTK_Closing_H 23 #include "mirtk/ImageToImage.h" 25 #include "mirtk/Assert.h" 26 #include "mirtk/NeighborhoodOffsets.h" 35 template <
class TVoxel>
38 mirtkInPlaceImageFilterMacro(
Closing, TVoxel);
44 mirtkPublicAttributeMacro(
int, NumberOfIterations);
66 template <
class TVoxel>
70 mirtkAssert(im !=
nullptr,
"template function called with correct type");
72 closing.Connectivity(connectivity);
73 closing.NumberOfIterations(iterations);
82 #endif // MIRTK_Closing_H virtual void Run()
Run erosion.
virtual void Initialize()
Initialize filter.
virtual ~Closing()
Destructor.
ConnectivityType
Type of image connectivity, i.e., number of neighbors for each voxel.