ANIMA  4.0
animaMajorityLabelVotingImageFilter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <itkImageToImageFilter.h>
4 
5 namespace anima
6 {
7 
8 template <class TPixelType>
10 public itk::ImageToImageFilter< itk::Image <TPixelType, 3>, itk::Image<TPixelType, 3> >
11 {
12 public:
16  using InputImageType = itk::Image <TPixelType, 3>;
17  using OutputImageType = itk::Image <TPixelType, 3>;
18  using Superclass = itk::ImageToImageFilter <InputImageType, OutputImageType>;
19  using Pointer = itk::SmartPointer<Self>;
20  using ConstPointer = itk::SmartPointer<const Self>;
21 
23  itkNewMacro(Self)
24 
25 
26  itkTypeMacro(MajorityLabelVotingImageFilter, ImageToImageFilter)
27 
28  using InputRegionType = typename InputImageType::RegionType;
29 
30 protected:
32  {
33  }
34 
36 
37  void DynamicThreadedGenerateData(const InputRegionType &region) ITK_OVERRIDE;
38 
39 private:
40  ITK_DISALLOW_COPY_AND_ASSIGN(MajorityLabelVotingImageFilter);
41 };
42 
43 } // end namespace anima
44 
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
typename InputImageType::RegionType InputRegionType
void DynamicThreadedGenerateData(const InputRegionType &region) ITK_OVERRIDE