76template <
typename TMeasurement =
float,
typename TFrequencyContainer = DenseFrequencyContainer2>
160 itkGetConstMacro(ClipBinsAtEnds,
bool);
161 itkSetMacro(ClipBinsAtEnds,
bool);
162 itkBooleanMacro(ClipBinsAtEnds);
331 Mean(
unsigned int dimension)
const;
467 return histogram->SetFrequency(this->
m_Id, value);
474 const Iterator iter(0,
this);
488 const ConstIterator iter(0,
this);
519 std::vector<std::vector<MeasurementType>>
m_Min{};
522 std::vector<std::vector<MeasurementType>>
m_Max{};
532#ifndef ITK_MANUAL_INSTANTIATION
533# include "itkHistogram.hxx"
Array class with size defined at construction time.
itk::IndexValueType ValueType
Control indentation during Print() invocation.
Implements transparent reference counting.
class that walks through the elements of the histogram.
const IndexType & GetIndex() const
ConstIterator(const Self *histogram)
bool operator==(const ConstIterator &it) const
ConstIterator(const ConstIterator &it)
ConstIterator(InstanceIdentifier id, const Self *histogram)
ConstIterator & operator=(const ConstIterator &it)
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ConstIterator)
ConstIterator & operator++()
InstanceIdentifier GetInstanceIdentifier() const
AbsoluteFrequencyType GetFrequency() const
const MeasurementVectorType & GetMeasurementVector() const
class that walks through the elements of the histogram.
Iterator(const Self *histogram)=delete
Iterator(Self *histogram)
Iterator(const ConstIterator &it)=delete
Iterator & operator=(const Iterator &it)
Iterator(InstanceIdentifier id, const Self *histogram)=delete
ConstIterator & operator=(const ConstIterator &it)=delete
Iterator(const Iterator &it)
bool SetFrequency(const AbsoluteFrequencyType value)
Iterator(InstanceIdentifier id, Self *histogram)
MeasurementVectorType ValueType
OffsetTableType m_OffsetTable
~Histogram() override=default
void Initialize(const SizeType &size, MeasurementVectorType &lowerBound, MeasurementVectorType &upperBound)
SizeValueType GetSize(unsigned int dimension) const
std::vector< std::vector< MeasurementType > > m_Min
void Initialize() override
const BinMaxVectorType & GetDimensionMaxs(unsigned int dimension) const
MeasurementType GetMeasurement(InstanceIdentifier n, unsigned int dimension) const
const MeasurementType & GetBinMax(unsigned int dimension, InstanceIdentifier nbin) const
const MeasurementType & GetBinMaxFromValue(unsigned int dimension, float value) const
bool GetIndex(const MeasurementVectorType &measurement, IndexType &index) const
MeasurementVectorType m_TempMeasurementVector
Sample< ArrayType > Superclass
std::vector< BinMaxVectorType > BinMaxContainerType
typename FrequencyContainerType::Pointer FrequencyContainerPointer
double Mean(unsigned int dimension) const
InstanceIdentifier Size() const override
const BinMinVectorType & GetDimensionMins(unsigned int dimension) const
bool SetFrequencyOfMeasurement(const MeasurementVectorType &measurement, AbsoluteFrequencyType value)
bool IncreaseFrequency(InstanceIdentifier id, AbsoluteFrequencyType value)
AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const override
InstanceIdentifier GetInstanceIdentifier(const IndexType &index) const
Array< itk::IndexValueType > IndexType
const IndexType & GetIndex(InstanceIdentifier id) const
AbsoluteFrequencyType GetFrequency(InstanceIdentifier n, unsigned int dimension) const
typename FrequencyContainerType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
double Quantile(unsigned int dimension, double p) const
unsigned int m_NumberOfInstances
FrequencyContainerPointer m_FrequencyContainer
const MeasurementVectorType & GetHistogramMaxFromIndex(const IndexType &index) const
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const override
typename FrequencyContainerType::AbsoluteFrequencyType AbsoluteFrequencyType
const MeasurementVectorType & GetMeasurementVector(const IndexType &index) const
ConstIterator Begin() const
ConstIterator End() const
void SetBinMax(unsigned int dimension, InstanceIdentifier nbin, MeasurementType max)
std::vector< MeasurementType > BinMaxVectorType
const MeasurementType & GetBinMinFromValue(unsigned int dimension, float value) const
typename MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
Array< TMeasurement > ArrayType
typename FrequencyContainerType::RelativeFrequencyType RelativeFrequencyType
bool IncreaseFrequencyOfIndex(const IndexType &index, AbsoluteFrequencyType value)
typename SizeType::ValueType SizeValueType
const SizeType & GetSize() const
void Graft(const DataObject *) override
TFrequencyContainer FrequencyContainerType
void SetBinMin(unsigned int dimension, InstanceIdentifier nbin, MeasurementType min)
const BinMaxContainerType & GetMaxs() const
Array< itk::SizeValueType > SizeType
typename FrequencyContainerType::TotalRelativeFrequencyType TotalRelativeFrequencyType
TotalAbsoluteFrequencyType GetTotalFrequency() const override
std::vector< std::vector< MeasurementType > > m_Max
std::vector< BinMinVectorType > BinMinContainerType
const MeasurementVectorType & GetHistogramMinFromIndex(const IndexType &index) const
const BinMinContainerType & GetMins() const
void PrintSelf(std::ostream &os, Indent indent) const override
TMeasurement MeasurementType
typename IndexType::ValueType IndexValueType
void Initialize(const SizeType &size)
SmartPointer< const Self > ConstPointer
bool IncreaseFrequencyOfMeasurement(const MeasurementVectorType &measurement, AbsoluteFrequencyType value)
AbsoluteFrequencyType GetFrequency(const IndexType &index) const
std::vector< InstanceIdentifier > OffsetTableType
const MeasurementType & GetBinMin(unsigned int dimension, InstanceIdentifier nbin) const
bool SetFrequencyOfIndex(const IndexType &index, AbsoluteFrequencyType value)
ArrayType MeasurementVectorType
SmartPointer< Self > Pointer
bool SetFrequency(InstanceIdentifier id, AbsoluteFrequencyType value)
bool IsIndexOutOfBounds(const IndexType &index) const
void SetFrequency(AbsoluteFrequencyType value)
std::vector< MeasurementType > BinMinVectorType
virtual MeasurementVectorSizeType GetMeasurementVectorSize() const
ArrayType MeasurementVectorType
unsigned int MeasurementVectorSizeType
typename MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....