|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkAttributeLabelObject_h
19 #define itkAttributeLabelObject_h
31 template <
typename TLabelObject>
41 return labelObject->GetAttribute();
47 labelObject->SetAttribute(value);
72 template <
typename TLabel,
unsigned int VImageDimension,
typename TAttributeValue>
124 template <
typename TSourceLabelObject>
128 itkAssertOrThrowMacro((src !=
nullptr),
"Null Pointer");
129 Superclass::template CopyAttributesFrom<TSourceLabelObject>(src);
134 template <
typename TSourceLabelObject>
138 itkAssertOrThrowMacro((src !=
nullptr),
"Null Pointer");
139 this->
template CopyLinesFrom<TSourceLabelObject>(src);
140 this->
template CopyAttributesFrom<TSourceLabelObject>(src);
155 os << indent <<
"Attribute: " <<
m_Attribute << std::endl;
typename LineType::LengthType LengthType
const AttributeValueType operator()(const LabelObjectType *labelObject)
typename LabelObjectType::AttributeValueType AttributeValueType
A LabelObject with a generic attribute.
TAttributeValue AttributeValueType
void CopyAllFrom(const TSourceLabelObject *src)
typename Superclass::LabelObjectType LabelObjectType
static constexpr unsigned int ImageDimension
Control indentation during Print() invocation.
typename Superclass::IndexType IndexType
Templated n-dimensional image to store labeled objects.
Light weight base class for most itk classes.
The base class for the representation of an labeled binary object in an image.
typename Superclass::LengthType LengthType
void PrintSelf(std::ostream &os, Indent indent) const override
TLabelObject LabelObjectType
const AttributeValueType & GetAttribute() const
void SetAttribute(const AttributeValueType &v)
void PrintSelf(std::ostream &os, Indent indent) const override
typename Superclass::LineType LineType
LabelObjectLine< VImageDimension > LineType
Implements a weak reference to an object.
Index< VImageDimension > IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
AttributeValueType GetAttribute()
AttributeValueType m_Attribute
void CopyAttributesFrom(const TSourceLabelObject *src)
void operator()(LabelObjectType *labelObject, AttributeValueType value)