ITK
6.0.0
Insight Toolkit
|
#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 42 of file itkLabelObjectLine.h.
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 |
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 47 of file itkLabelObjectLine.h.
using itk::LabelObjectLine< VImageDimension >::LengthType = SizeValueType |
Definition at line 48 of file itkLabelObjectLine.h.
itk::LabelObjectLine< VImageDimension >::LabelObjectLine | ( | ) |
itk::LabelObjectLine< VImageDimension >::LabelObjectLine | ( | const IndexType & | idx, |
const LengthType & | length | ||
) |
|
virtualdefault |
const IndexType& itk::LabelObjectLine< VImageDimension >::GetIndex | ( | ) | const |
const LengthType& itk::LabelObjectLine< VImageDimension >::GetLength | ( | ) | const |
bool itk::LabelObjectLine< VImageDimension >::HasIndex | ( | const IndexType | idx | ) | const |
Check for index
bool itk::LabelObjectLine< VImageDimension >::IsNextIndex | ( | const IndexType & | idx | ) | const |
void itk::LabelObjectLine< VImageDimension >::Print | ( | std::ostream & | os, |
Indent | indent = 0 |
||
) | const |
Cause the object to print itself out.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
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 45 of file itkLabelObjectLine.h.
|
private |
Definition at line 100 of file itkLabelObjectLine.h.
|
private |
Definition at line 101 of file itkLabelObjectLine.h.