13 #ifndef itLabelSampler_h
14 #define itLabelSampler_h
16 #include "itkImageToImageFilter.h"
20 template<
class TImage>
32 itkTypeMacro(
Self, ImageToImageFilter);
33 itkSetMacro(AcceptRate,
double);
34 itkSetMacro(Label,
int);
35 itkGetMacro(LabelVoxelCountMap,
outmap);
36 itkGetMacro(NumberOfSampledVoxels,
int);
40 if(m_LabelVoxelCountMap.empty())
42 return m_LabelVoxelCountMap[label];
49 ,m_UseLabelVoxelCount(false)
51 this->SetNumberOfRequiredInputs(1);
52 this->SetNumberOfRequiredOutputs(1);
62 void operator=(
const Self &);
65 int m_NumberOfSampledVoxels;
67 bool m_UseLabelVoxelCount;
68 std::map<int,int> m_LabelVoxelCountMap;
73 #ifndef ITK_MANUAL_INSTANTIATION
74 #include <../src/Algorithms/itkLabelSampler.cpp>
78 #endif // itLabelSampler_h