17 #ifndef itLabelSampler_h
18 #define itLabelSampler_h
20 #include "itkImageToImageFilter.h"
24 template<
class TImage>
38 itkTypeMacro(Self, ImageToImageFilter)
40 itkSetMacro(AcceptRate,
double)
41 itkSetMacro(Label,
int)
42 itkGetMacro(LabelVoxelCountMap, outmap)
43 itkGetMacro(NumberOfSampledVoxels,
int)
47 if(m_LabelVoxelCountMap.empty())
49 return m_LabelVoxelCountMap[label];
56 ,m_UseLabelVoxelCount(false)
58 this->SetNumberOfRequiredInputs(1);
59 this->SetNumberOfRequiredOutputs(1);
69 void operator=(
const Self &);
72 int m_NumberOfSampledVoxels;
74 bool m_UseLabelVoxelCount;
75 std::map<int,int> m_LabelVoxelCountMap;
80 #ifndef ITK_MANUAL_INSTANTIATION
81 #include <../src/Algorithms/itkLabelSampler.cpp>
85 #endif // itLabelSampler_h
SmartPointer< Self > Pointer
ImageToImageFilter< TImage, TImage > Superclass
std::map< int, int > outmap
int GetLabelVoxelCount(int label)
virtual void GenerateData()