18 #ifndef itkAttributeLabelObject_h
19 #define itkAttributeLabelObject_h
30 template<
typename TLabelObject >
39 return labelObject->GetAttribute();
44 labelObject->SetAttribute( value );
69 template <
typename TLabel,
unsigned int VImageDimension,
typename TAttributeValue >
122 const Self * src =
dynamic_cast<const Self *
>( lo );
123 if( src == ITK_NULLPTR )
141 os << indent <<
"Attribute: " <<
m_Attribute << std::endl;
void operator()(LabelObjectType *labelObject, AttributeValueType value)
virtual void CopyAttributesFrom(const LabelObjectType *lo) override
Superclass::LineType LineType
Light weight base class for most itk classes.
SmartPointer< Self > Pointer
virtual void CopyAttributesFrom(const Self *src)
Superclass::IndexType IndexType
Superclass::LabelObjectType LabelObjectType
A LabelObject with a generic attribute.
LabelObject< TLabel, VImageDimension > Superclass
void operator=(const Self &)
Implements a weak reference to an object.
SmartPointer< const Self > ConstPointer
LabelMap< Self > LabelMapType
void SetAttribute(const AttributeValueType &v)
LineType::LengthType LengthType
void PrintSelf(std::ostream &os, Indent indent) const override
static const unsigned int ImageDimension
LabelObjectType::AttributeValueType AttributeValueType
const AttributeValueType & GetAttribute() const
virtual void PrintSelf(std::ostream &os, Indent indent) const override
const AttributeValueType operator()(const LabelObjectType *labelObject)
Superclass::LengthType LengthType
WeakPointer< const Self > ConstWeakPointer
AttributeValueType m_Attribute
The base class for the representation of an labeled binary object in an image.
Control indentation during Print() invocation.
AttributeValueType GetAttribute()
Templated n-dimensional image to store labeled objects.
TAttributeValue AttributeValueType
AttributeLabelObject Self
TLabelObject LabelObjectType