Go to the documentation of this file.
18 #ifndef sitkLabelStatisticsImageFilter_h
19 #define sitkLabelStatisticsImageFilter_h
66 SITK_RETURN_SELF_TYPE_HEADER
SetUseHistograms (
bool UseHistograms ) { this->m_UseHistograms = UseHistograms;
return *
this; }
69 SITK_RETURN_SELF_TYPE_HEADER
UseHistogramsOn() {
return this->SetUseHistograms(
true); }
70 SITK_RETURN_SELF_TYPE_HEADER
UseHistogramsOff() {
return this->SetUseHistograms(
false); }
163 std::vector<unsigned int>
GetRegion(
int64_t label)
const {
return this->m_pfGetRegion(label); };
171 std::vector<int64_t>
GetLabels()
const {
return this->m_Labels; };
175 std::string
GetName()
const {
return std::string (
"LabelStatisticsImageFilter"); }
178 std::string ToString()
const;
183 void Execute (
const Image & image,
const Image & labelImage );
198 template <
class TImageType1,
class TImageType2>
void DualExecuteInternal (
const Image * image,
const Image * labelImage );
205 bool m_UseHistograms{
true};
228 std::vector<int64_t> m_Labels{std::vector<int64_t>()};
The Image class for SimpleITK.
std::vector< unsigned int > GetRegion(int64_t label) const
uint64_t GetCount(int64_t label) const
std::function< std::vector< unsigned int >int64_t)> m_pfGetRegion
std::function< double(int64_t)> m_pfGetMedian
double GetVariance(int64_t label) const
double GetMinimum(int64_t label) const
std::function< double(int64_t)> m_pfGetSigma
std::function< double(int64_t)> m_pfGetMaximum
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...
std::function< std::vector< int >int64_t)> m_pfGetBoundingBox
std::function< double(int64_t)> m_pfGetVariance
void(Self::*)(const Image *image, const Image *labelImage) MemberFunctionType
double GetMean(int64_t label) const
#define SITKBasicFilters_EXPORT
double GetSigma(int64_t label) const
Self & SetUseHistograms(bool UseHistograms)
BasicPixelIDTypeList PixelIDTypeList
std::string GetName() const
double GetSum(int64_t label) const
std::function< double(int64_t)> m_pfGetSum
The base interface for SimpleITK filters that take one input image.
std::function< double(int64_t)> m_pfGetMinimum
std::vector< int64_t > GetLabels() const
Self & UseHistogramsOff()
std::function< double(int64_t)> m_pfGetMean
std::vector< int > GetBoundingBox(int64_t label) const
std::unique_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
std::function< uint64_t(int64_t)> m_pfGetCount
bool GetUseHistograms() const
double GetMedian(int64_t label) const