61template <
typename TMeasurementVector>
65 ITK_DISALLOW_COPY_AND_MOVE(
Sample);
74 itkOverrideGetNameOfClassMacro(
Sample);
119 if (MeasurementVectorTraits::IsResizable<MeasurementVectorType>({}))
134 itkExceptionMacro(
"Attempting to change the measurement vector size of a non-empty Sample");
149 if (defaultLength != s)
151 itkExceptionMacro(
"Attempting to change the measurement vector size of a non-resizable vector type");
166 const auto * thatConst =
dynamic_cast<const Self *
>(thatObject);
Base class for all data objects in ITK.
virtual void Graft(const DataObject *)
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
static unsigned int GetLength()
Base class for most ITK classes.
virtual void Modified() const
typename TMeasurementVector::ValueType ValueType
IdentifierType InstanceIdentifier
InstanceIdentifier AbsoluteFrequencyType
A collection of measurements for statistical analysis.
virtual void SetMeasurementVectorSize(MeasurementVectorSizeType s)
virtual InstanceIdentifier Size() const =0
void PrintSelf(std::ostream &os, Indent indent) const override
TMeasurementVector MeasurementVectorType
typename MeasurementVectorTraitsTypes< MeasurementVectorType >::ValueType MeasurementType
unsigned int MeasurementVectorSizeType
virtual const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const =0
typename MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
virtual AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const =0
void Graft(const DataObject *thatObject) override
NumericTraits< AbsoluteFrequencyType >::AccumulateType TotalAbsoluteFrequencyType
virtual TotalAbsoluteFrequencyType GetTotalFrequency() const =0
MeasurementVectorSizeType m_MeasurementVectorSize
~Sample() override=default
MeasurementVectorTraits::AbsoluteFrequencyType AbsoluteFrequencyType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....