ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | List of all members
itk::BresenhamLine< VDimension > Class Template Reference

#include <itkBresenhamLine.h>

Detailed Description

template<unsigned int VDimension>
class itk::BresenhamLine< VDimension >

Compute indices along a line in n dimensions.

Returns an array of indices that are offsets along the line. The line can be described by a direction vector and a length. The line can be described by starting and ending indices.

ITK Sphinx Examples:
Examples
SphinxExamples/src/Core/Common/BresenhamLine/Code.cxx.

Definition at line 43 of file itkBresenhamLine.h.

Public Types

using IndexArray = std::vector< IndexType >
 
using IndexType = Index< VDimension >
 
using LType = Vector< float, VDimension >
 
using OffsetArray = std::vector< OffsetType >
 
using OffsetType = Offset< VDimension >
 
using Self = BresenhamLine
 

Public Member Functions

IndexArray BuildLine (IndexType p0, IndexType p1)
 
OffsetArray BuildLine (LType Direction, IdentifierType length)
 

Member Typedef Documentation

◆ IndexArray

template<unsigned int VDimension>
using itk::BresenhamLine< VDimension >::IndexArray = std::vector<IndexType>

Definition at line 52 of file itkBresenhamLine.h.

◆ IndexType

template<unsigned int VDimension>
using itk::BresenhamLine< VDimension >::IndexType = Index<VDimension>

Definition at line 50 of file itkBresenhamLine.h.

◆ LType

template<unsigned int VDimension>
using itk::BresenhamLine< VDimension >::LType = Vector<float, VDimension>

Definition at line 48 of file itkBresenhamLine.h.

◆ OffsetArray

template<unsigned int VDimension>
using itk::BresenhamLine< VDimension >::OffsetArray = std::vector<OffsetType>

Definition at line 51 of file itkBresenhamLine.h.

◆ OffsetType

template<unsigned int VDimension>
using itk::BresenhamLine< VDimension >::OffsetType = Offset<VDimension>

Definition at line 49 of file itkBresenhamLine.h.

◆ Self

template<unsigned int VDimension>
using itk::BresenhamLine< VDimension >::Self = BresenhamLine

Definition at line 46 of file itkBresenhamLine.h.

Member Function Documentation

◆ BuildLine() [1/2]

template<unsigned int VDimension>
IndexArray itk::BresenhamLine< VDimension >::BuildLine ( IndexType  p0,
IndexType  p1 
)

Build a line between two pixels.

◆ BuildLine() [2/2]

template<unsigned int VDimension>
OffsetArray itk::BresenhamLine< VDimension >::BuildLine ( LType  Direction,
IdentifierType  length 
)

Build a line in a specified Direction.


The documentation for this class was generated from the following file: