Go to the documentation of this file.
18 #ifndef sitkLabelIntensityStatisticsImageFilter_h
19 #define sitkLabelIntensityStatisticsImageFilter_h
66 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
76 SITK_RETURN_SELF_TYPE_HEADER
SetComputeFeretDiameter (
bool ComputeFeretDiameter ) { this->m_ComputeFeretDiameter = ComputeFeretDiameter;
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER
SetComputePerimeter (
bool ComputePerimeter ) { this->m_ComputePerimeter = ComputePerimeter;
return *
this; }
188 std::vector<int64_t>
GetLabels()
const {
return this->m_Labels; };
416 std::string
GetName()
const {
return std::string (
"LabelIntensityStatisticsImageFilter"); }
419 std::string ToString()
const;
423 void Execute (
const Image & image,
const Image & featureImage );
427 void Execute (
const Image & image,
const Image & featureImage,
double backgroundValue,
bool computeFeretDiameter,
bool computePerimeter,
uint32_t numberOfBins );
439 typedef void (
Self::*MemberFunctionType)(
const Image * image,
const Image * featureImage );
442 template <
class TImageType1,
class TImageType2>
void DualExecuteInternal (
const Image * image,
const Image * featureImage );
The main Image class for SimpleITK.
uint64_t GetNumberOfPixelsOnBorder(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetEquivalentSphericalRadius
nsstd::function< std::vector< double >int64_t)> m_pfGetPrincipalMoments
Self & SetBackgroundValue(double BackgroundValue)
std::vector< double > GetWeightedPrincipalMoments(int64_t label) const
nsstd::function< std::vector< double >int64_t)> m_pfGetCenterOfGravity
LabelIntensityStatisticsImageFilter Self
nsstd::function< double(int64_t)> m_pfGetVariance
nsstd::function< double(int64_t)> m_pfGetFeretDiameter
bool GetComputePerimeter() const
nsstd::function< double(int64_t)> m_pfGetMean
std::vector< uint32_t > GetMinimumIndex(int64_t label) const
uint64_t GetNumberOfPixels(int64_t label) const
double GetSkewness(int64_t label) const
a convenient class to convert a label image to a label map and valuate the statistics attributes at o...
std::vector< double > GetWeightedPrincipalAxes(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetPhysicalSize
double GetMinimum(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetStandardDeviation
double GetPerimeterOnBorder(int64_t label) const
std::vector< int64_t > GetLabels() const
nsstd::function< std::vector< unsigned int >int64_t)> m_pfGetBoundingBox
nsstd::function< double(int64_t)> m_pfGetRoundness
double GetWeightedFlatness(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetPerimeterOnBorderRatio
Self & SetComputeFeretDiameter(bool ComputeFeretDiameter)
std::vector< double > GetPrincipalAxes(int64_t label) const
bool GetComputeFeretDiameter() const
Self & SetComputePerimeter(bool ComputePerimeter)
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
double GetEquivalentSphericalRadius(int64_t label) const
itk::ProcessObject * m_Filter
nsstd::function< double(int64_t)> m_pfGetMinimum
nsstd::function< double(int64_t)> m_pfGetEquivalentSphericalPerimeter
double GetPerimeterOnBorderRatio(int64_t label) const
double GetMedian(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetWeightedFlatness
double GetPhysicalSize(int64_t label) const
double GetRoundness(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetPerimeterOnBorder
double GetFlatness(int64_t label) const
Self & ComputePerimeterOn()
nsstd::function< std::vector< double >int64_t)> m_pfGetPrincipalAxes
Self & SetNumberOfBins(uint32_t NumberOfBins)
double GetKurtosis(int64_t label) const
nsstd::function< std::vector< uint32_t >int64_t)> m_pfGetMaximumIndex
double GetFeretDiameter(int64_t label) const
std::vector< unsigned int > GetBoundingBox(int64_t label) const
double GetBackgroundValue() const
uint32_t GetNumberOfBins() const
double GetMaximum(int64_t label) const
double GetPerimeter(int64_t label) const
double GetElongation(int64_t label) const
nsstd::function< uint64_t(int64_t)> m_pfGetNumberOfPixelsOnBorder
bool m_ComputeFeretDiameter
nsstd::function< double(int64_t)> m_pfGetFlatness
#define SITKBasicFilters_EXPORT
nsstd::function< double(int64_t)> m_pfGetKurtosis
double GetWeightedElongation(int64_t label) const
nsstd::function< std::vector< double >int64_t)> m_pfGetCentroid
nsstd::function< std::vector< double >int64_t)> m_pfGetWeightedPrincipalMoments
double GetSum(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetWeightedElongation
nsstd::function< std::vector< double >int64_t)> m_pfGetWeightedPrincipalAxes
std::vector< double > GetEquivalentEllipsoidDiameter(int64_t label) const
double GetVariance(int64_t label) const
nsstd::function< std::vector< uint32_t >int64_t)> m_pfGetMinimumIndex
nsstd::function< uint64_t(int64_t)> m_pfGetNumberOfPixels
std::vector< uint32_t > GetMaximumIndex(int64_t label) const
Self & ComputeFeretDiameterOn()
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
nsstd::function< double(int64_t)> m_pfGetElongation
Self & ComputeFeretDiameterOff()
std::vector< double > GetCenterOfGravity(int64_t label) const
Self & ComputePerimeterOff()
double GetEquivalentSphericalPerimeter(int64_t label) const
double GetMean(int64_t label) const
nsstd::function< double(int64_t)> m_pfGetMedian
double GetStandardDeviation(int64_t label) const
IntegerPixelIDTypeList PixelIDTypeList
nsstd::function< double(int64_t)> m_pfGetSum
nsstd::function< double(int64_t)> m_pfGetMaximum
nsstd::function< double(int64_t)> m_pfGetSkewness
nsstd::function< std::vector< double >int64_t)> m_pfGetEquivalentEllipsoidDiameter
std::vector< int64_t > m_Labels
nsstd::function< double(int64_t)> m_pfGetPerimeter
std::vector< double > GetCentroid(int64_t label) const
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
std::vector< double > GetPrincipalMoments(int64_t label) const
std::string GetName() const