#include <itkLabelObjectLine.h>
LabelObjectLine is the line object used in the LabelObject class to store the line which are part of the object. A line is formed of and index and a length in the dimension 0. It is used in a run-length encoding
This implementation was taken from the Insight Journal paper: https://doi.org/10.54294/q6auw4
Definition at line 43 of file itkLabelObjectLine.h.
Collaboration diagram for itk::LabelObjectLine< VImageDimension >:Public Types | |
| using | IndexType = Index<VImageDimension> |
| using | LengthType = SizeValueType |
Public Member Functions | |
| const IndexType & | GetIndex () const |
| const LengthType & | GetLength () const |
| bool | HasIndex (const IndexType idx) const |
| bool | IsNextIndex (const IndexType &idx) const |
| ITK_DEFAULT_COPY_AND_MOVE (LabelObjectLine) | |
| LabelObjectLine () | |
| LabelObjectLine (const IndexType &idx, const LengthType &length) | |
| void | Print (std::ostream &os, Indent indent=0) const |
| void | SetIndex (const IndexType &idx) |
| void | SetLength (const LengthType length) |
| virtual | ~LabelObjectLine ()=default |
Static Public Attributes | |
| static constexpr unsigned int | ImageDimension = VImageDimension |
Protected Member Functions | |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| virtual void | PrintSelf (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
Private Attributes | |
| IndexType | m_Index {} |
| LengthType | m_Length {} |
| using itk::LabelObjectLine< VImageDimension >::IndexType = Index<VImageDimension> |
Definition at line 50 of file itkLabelObjectLine.h.
| using itk::LabelObjectLine< VImageDimension >::LengthType = SizeValueType |
Definition at line 51 of file itkLabelObjectLine.h.
| itk::LabelObjectLine< VImageDimension >::LabelObjectLine | ( | ) |
Referenced by ITK_DEFAULT_COPY_AND_MOVE().
| itk::LabelObjectLine< VImageDimension >::LabelObjectLine | ( | const IndexType & | idx, |
| const LengthType & | length ) |
|
virtualdefault |
|
nodiscard |
|
nodiscard |
|
nodiscard |
Check for index
|
nodiscard |
| itk::LabelObjectLine< VImageDimension >::ITK_DEFAULT_COPY_AND_MOVE | ( | LabelObjectLine< VImageDimension > | ) |
References LabelObjectLine().
| void itk::LabelObjectLine< VImageDimension >::Print | ( | std::ostream & | os, |
| Indent | indent = 0 ) const |
Cause the object to print itself out.
|
protectedvirtual |
|
protectedvirtual |
|
inlineprotectedvirtual |
Definition at line 100 of file itkLabelObjectLine.h.
| void itk::LabelObjectLine< VImageDimension >::SetIndex | ( | const IndexType & | idx | ) |
Set/Get Index
| void itk::LabelObjectLine< VImageDimension >::SetLength | ( | const LengthType | length | ) |
SetGet Length
|
staticconstexpr |
Definition at line 48 of file itkLabelObjectLine.h.
|
private |
Definition at line 104 of file itkLabelObjectLine.h.
|
private |
Definition at line 105 of file itkLabelObjectLine.h.