Go to the documentation of this file.
18 #ifndef sitkLabelStatisticsImageFilter_h
19 #define sitkLabelStatisticsImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetUseHistograms (
bool UseHistograms ) { this->m_UseHistograms = UseHistograms;
return *
this; }
74 SITK_RETURN_SELF_TYPE_HEADER
UseHistogramsOn() {
return this->SetUseHistograms(
true); }
75 SITK_RETURN_SELF_TYPE_HEADER
UseHistogramsOff() {
return this->SetUseHistograms(
false); }
168 std::vector<unsigned int>
GetRegion(
int64_t label)
const {
return this->m_pfGetRegion(label); };
176 std::vector<int64_t>
GetLabels()
const {
return this->m_Labels; };
179 std::string
GetName()
const {
return std::string (
"LabelStatisticsImageFilter"); }
182 std::string ToString()
const;
186 void Execute (
const Image & image,
const Image & labelImage );
190 void Execute (
const Image & image,
const Image & labelImage,
bool useHistograms );
202 typedef void (
Self::*MemberFunctionType)(
const Image * image,
const Image * labelImage );
205 template <
class TImageType1,
class TImageType2>
void DualExecuteInternal (
const Image * image,
const Image * labelImage );
The main Image class for SimpleITK.
std::vector< unsigned int > GetRegion(int64_t label) const
uint64_t GetCount(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetSigma
double GetVariance(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetVariance
double GetMinimum(int64_t label) const
nsstd::function< uint64_t(int64_t)> m_pfGetCount
nsstd::function< std::vector< int >int64_t)> m_pfGetBoundingBox
nsstd::function< double(int64_t)> m_pfGetMean
double GetMaximum(int64_t label) const
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Given an intensity image and a label map, compute min, max, variance and mean of the pixels associate...
itk::ProcessObject * m_Filter
LabelStatisticsImageFilter Self
nsstd::function< double(int64_t)> m_pfGetMedian
BasicPixelIDTypeList PixelIDTypeList
nsstd::function< double(int64_t)> m_pfGetMinimum
double GetMean(int64_t label) const
#define SITKBasicFilters_EXPORT
double GetSigma(int64_t label) const
Self & SetUseHistograms(bool UseHistograms)
std::string GetName() const
std::vector< int64_t > m_Labels
nsstd::function< std::vector< unsigned int >int64_t)> m_pfGetRegion
double GetSum(int64_t label) const
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
nsstd::function< double(int64_t)> m_pfGetSum
nsstd::function< double(int64_t)> m_pfGetMaximum
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
std::vector< int64_t > GetLabels() const
Self & UseHistogramsOff()
std::vector< int > GetBoundingBox(int64_t label) const
bool GetUseHistograms() const
double GetMedian(int64_t label) const