|
ITK
5.2.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;
270 return !(*
this == iter);
276 m_Iterator = m_Begin;
282 return m_Iterator == m_End;
311 m_Begin = lo->m_LineContainer.begin();
312 m_End = lo->m_LineContainer.end();
344 if (m_Index[0] >= m_Iterator->GetIndex()[0] + (
OffsetValueType)m_Iterator->GetLength())
370 return !(*
this == iter);
376 m_Iterator = m_Begin;
384 return m_Iterator == m_End;
394 while (m_Iterator != m_End && m_Iterator->GetLength() == 0)
398 if (m_Iterator != m_End)
400 m_Index = m_Iterator->GetIndex();
413 PrintSelf(std::ostream & os,
Indent indent)
const override;
423 #ifndef ITK_MANUAL_INSTANTIATION
424 # 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 ConstLineIterator &iter) const
bool operator!=(const ConstIndexIterator &iter) const
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 an labeled binary object in an image.
LineContainerType m_LineContainer
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)
signed long OffsetValueType
ConstIndexIterator(const ConstIndexIterator &iter)
unsigned long SizeValueType