|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkLabelObject_h
19 #define itkLabelObject_h
64 template <
typename TLabel,
unsigned int VImageDimension>
85 static constexpr
unsigned int ImageDimension = VImageDimension;
98 GetAttributeFromName(
const std::string & s);
147 GetNumberOfLines()
const;
183 template <
typename TSourceLabelObject>
185 CopyLinesFrom(
const TSourceLabelObject * src);
188 template <
typename TSourceLabelObject>
190 CopyAttributesFrom(
const TSourceLabelObject * src);
193 template <
typename TSourceLabelObject>
195 CopyAllFrom(
const TSourceLabelObject * src);
219 m_Begin = lo->m_LineContainer.begin();
220 m_End = lo->m_LineContainer.end();
221 m_Iterator = m_Begin;
272 m_Iterator = m_Begin;
278 return m_Iterator == m_End;
307 m_Begin = lo->m_LineContainer.begin();
308 m_End = lo->m_LineContainer.end();
340 if (m_Index[0] >= m_Iterator->GetIndex()[0] + (
OffsetValueType)m_Iterator->GetLength())
368 m_Iterator = m_Begin;
376 return m_Iterator == m_End;
386 while (m_Iterator != m_End && m_Iterator->GetLength() == 0)
390 if (m_Iterator != m_End)
392 m_Index = m_Iterator->GetIndex();
405 PrintSelf(std::ostream & os,
Indent indent)
const override;
415 #ifndef ITK_MANUAL_INSTANTIATION
416 # include "itkLabelObject.hxx"
unsigned int AttributeType
InternalIteratorType m_Iterator
typename LineType::LengthType LengthType
typename std::deque< LineType > LineContainerType
ConstLineIterator(const Self *lo)
InternalIteratorType m_End
Represent a n-dimensional size (bounds) of a n-dimensional image.
ConstIndexIterator & operator++()
InternalIteratorType m_Begin
ConstLineIterator & operator=(const ConstLineIterator &iter)
typename LineContainerType::const_iterator InternalIteratorType
bool operator==(const ConstIndexIterator &iter) const
ConstLineIterator(const ConstLineIterator &iter)
const IndexType & GetIndex() const
const LineType & GetLine() const
Control indentation during Print() invocation.
typename std::deque< LineType > LineContainerType
itk::SizeValueType SizeValueType
typename std::deque< LineType > LineContainerType
Light weight base class for most itk classes.
ConstIndexIterator & operator=(const ConstIndexIterator &iter)
The base class for the representation of a labeled binary object in an image.
typename LineContainerType::const_iterator InternalIteratorType
bool operator==(const ConstLineIterator &iter) const
ConstIndexIterator operator++(int)
InternalIteratorType m_Iterator
A forward iterator over the lines of a LabelObject.
InternalIteratorType m_End
ConstLineIterator & operator++()
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Implements a weak reference to an object.
InternalIteratorType m_Begin
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ConstLineIterator operator++(int)
ConstIndexIterator(const Self *lo)
ConstIndexIterator(const ConstIndexIterator &iter)
unsigned long SizeValueType