Orfeo Toolbox  3.16
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
otb::PolyLineImageIterator< TImage, TPath > Class Template Reference

Uses the bresenham algorithm to iterate over a polyline on an image. More...

#include <otbPolyLineImageIterator.h>

+ Inheritance diagram for otb::PolyLineImageIterator< TImage, TPath >:
+ Collaboration diagram for otb::PolyLineImageIterator< TImage, TPath >:

Public Types

typedef TImage::AccessorType AccessorType
 
typedef TImage ImageType
 
typedef TImage::IndexType IndexType
 
typedef TImage::IndexValueType IndexValueType
 
typedef itk::LineIterator
< ImageType
InternalImageIteratorType
 
typedef TImage::InternalPixelType InternalPixelType
 
typedef TImage::OffsetType OffsetType
 
typedef TImage::OffsetValueType OffsetValueType
 
typedef TPath PathType
 
typedef TImage::PixelContainer PixelContainer
 
typedef PixelContainer::Pointer PixelContainerPointer
 
typedef TImage::PixelType PixelType
 
typedef TImage::PointType PointType
 
typedef TImage::RegionType RegionType
 
typedef PolyLineImageIterator Self
 
typedef TImage::SizeType SizeType
 
typedef TImage::SizeValueType SizeValueType
 
typedef TImage::SpacingType SpacingType
 
typedef
PolyLineImageConstIterator
< TImage, TPath > 
Superclass
 
typedef
VertexListType::ConstIterator 
VertexIteratorType
 
typedef PathType::VertexListType VertexListType
 
typedef PathType::VertexType VertexType
 

Public Member Functions

 PolyLineImageIterator (ImageType *imagePtr, PathType *pathPtr)
 
virtual ~PolyLineImageIterator ()
 
const PixelTypeGet (void) const
 
const IndexType GetIndex ()
 
virtual const char * GetNameOfClass () const
 
void GoToBegin ()
 
bool IsAtEnd ()
 
void operator++ ()
 
Selfoperator= (const Self &it)
 
void Set (const PixelType &value)
 
PixelTypeValue (void)
 

Static Public Member Functions

static unsigned int GetImageIteratorDimension ()
 

Static Public Attributes

static const unsigned int ImageIteratorDimension = TImage::ImageDimension
 

Protected Attributes

ImageType::ConstWeakPointer m_Image
 
InternalImageIteratorType m_InternalImageIterator
 
VertexIteratorType m_InternalVertexIterator
 
PathType::ConstPointer m_Path
 

Detailed Description

template<class TImage, class TPath>
class otb::PolyLineImageIterator< TImage, TPath >

Uses the bresenham algorithm to iterate over a polyline on an image.

This iterator encapsulates the itk::LineIterator along with the VectorContainer iterator on the vertex list of the polyline.

See Also
PolyLineParametricPath
PolyLineParametricPathWithValue
LineIterator
LineConstIterator
PolyLineImageConstIterator

Definition at line 41 of file otbPolyLineImageIterator.h.

Member Typedef Documentation

template<class TImage , class TPath >
typedef TImage::AccessorType otb::PolyLineImageIterator< TImage, TPath >::AccessorType

Definition at line 71 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage otb::PolyLineImageIterator< TImage, TPath >::ImageType

Definition at line 61 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::IndexType otb::PolyLineImageIterator< TImage, TPath >::IndexType

Definition at line 52 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::IndexValueType otb::PolyLineImageIterator< TImage, TPath >::IndexValueType

Definition at line 53 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef itk::LineIterator<ImageType> otb::PolyLineImageIterator< TImage, TPath >::InternalImageIteratorType

Definition at line 66 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::InternalPixelType otb::PolyLineImageIterator< TImage, TPath >::InternalPixelType

Definition at line 69 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::OffsetType otb::PolyLineImageIterator< TImage, TPath >::OffsetType

Definition at line 54 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::OffsetValueType otb::PolyLineImageIterator< TImage, TPath >::OffsetValueType

Definition at line 55 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TPath otb::PolyLineImageIterator< TImage, TPath >::PathType

Definition at line 62 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::PixelContainer otb::PolyLineImageIterator< TImage, TPath >::PixelContainer

Definition at line 67 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef PixelContainer::Pointer otb::PolyLineImageIterator< TImage, TPath >::PixelContainerPointer

Definition at line 68 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::PixelType otb::PolyLineImageIterator< TImage, TPath >::PixelType

Definition at line 70 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::PointType otb::PolyLineImageIterator< TImage, TPath >::PointType

Definition at line 60 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::RegionType otb::PolyLineImageIterator< TImage, TPath >::RegionType

Definition at line 58 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef PolyLineImageIterator otb::PolyLineImageIterator< TImage, TPath >::Self

Standard typedefs

Definition at line 46 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::SizeType otb::PolyLineImageIterator< TImage, TPath >::SizeType

Definition at line 56 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::SizeValueType otb::PolyLineImageIterator< TImage, TPath >::SizeValueType

Definition at line 57 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef TImage::SpacingType otb::PolyLineImageIterator< TImage, TPath >::SpacingType

Definition at line 59 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef PolyLineImageConstIterator<TImage, TPath> otb::PolyLineImageIterator< TImage, TPath >::Superclass

Definition at line 47 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef VertexListType::ConstIterator otb::PolyLineImageIterator< TImage, TPath >::VertexIteratorType

Definition at line 65 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef PathType::VertexListType otb::PolyLineImageIterator< TImage, TPath >::VertexListType

Definition at line 64 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
typedef PathType::VertexType otb::PolyLineImageIterator< TImage, TPath >::VertexType

Definition at line 63 of file otbPolyLineImageIterator.h.

Constructor & Destructor Documentation

template<class TImage , class TPath >
otb::PolyLineImageIterator< TImage, TPath >::PolyLineImageIterator ( ImageType imagePtr,
PathType pathPtr 
)
inline

Constructor establishes an iterator to walk along a line

Definition at line 95 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
virtual otb::PolyLineImageIterator< TImage, TPath >::~PolyLineImageIterator ( )
inlinevirtual

Default Destructor.

Definition at line 98 of file otbPolyLineImageIterator.h.

Member Function Documentation

template<class TImage , class TPath >
const PixelType& otb::PolyLineImageConstIterator< TImage, TPath >::Get ( void  ) const
inlineinherited

Get the pixel value

Definition at line 85 of file otbPolyLineImageConstIterator.h.

Referenced by otb::LikelihoodPathListFilter< TPath, TImage >::GenerateData().

template<class TImage , class TPath >
static unsigned int otb::PolyLineImageConstIterator< TImage, TPath >::GetImageIteratorDimension ( )
inlinestaticinherited

Get the dimension (size) of the index.

Definition at line 75 of file otbPolyLineImageConstIterator.h.

template<class TImage , class TPath >
const IndexType otb::PolyLineImageConstIterator< TImage, TPath >::GetIndex ( )
inlineinherited
template<class TImage , class TPath >
virtual const char* otb::PolyLineImageIterator< TImage, TPath >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::PolyLineImageConstIterator< TImage, TPath >.

template<class TImage , class TPath >
void otb::PolyLineImageConstIterator< TImage, TPath >::GoToBegin ( void  )
inherited
template<class TImage , class TPath >
bool otb::PolyLineImageConstIterator< TImage, TPath >::IsAtEnd ( )
inlineinherited
template<class TImage , class TPath >
void otb::PolyLineImageConstIterator< TImage, TPath >::operator++ ( )
inherited

Walk forward along the line to the next index in the image.

Definition at line 102 of file otbPolyLineImageConstIterator.txx.

template<class TImage , class TPath >
Self& otb::PolyLineImageIterator< TImage, TPath >::operator= ( const Self it)
inline

Definition at line 88 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
void otb::PolyLineImageIterator< TImage, TPath >::Set ( const PixelType value)
inline
template<class TImage , class TPath >
PixelType& otb::PolyLineImageIterator< TImage, TPath >::Value ( void  )
inline

Return a reference to the pixel This method will provide the fastest access to pixel data, but it will NOT support ImageAdaptors.

Definition at line 84 of file otbPolyLineImageIterator.h.

Member Data Documentation

template<class TImage , class TPath >
const unsigned int otb::PolyLineImageIterator< TImage, TPath >::ImageIteratorDimension = TImage::ImageDimension
static

Definition at line 50 of file otbPolyLineImageIterator.h.

template<class TImage , class TPath >
ImageType::ConstWeakPointer otb::PolyLineImageConstIterator< TImage, TPath >::m_Image
protectedinherited

Smart pointer to the source image.

Definition at line 110 of file otbPolyLineImageConstIterator.h.

Referenced by otb::PolyLineImageConstIterator< TImage, TPath >::operator=().

template<class TImage , class TPath >
InternalImageIteratorType otb::PolyLineImageConstIterator< TImage, TPath >::m_InternalImageIterator
protectedinherited
template<class TImage , class TPath >
VertexIteratorType otb::PolyLineImageConstIterator< TImage, TPath >::m_InternalVertexIterator
protectedinherited
template<class TImage , class TPath >
PathType::ConstPointer otb::PolyLineImageConstIterator< TImage, TPath >::m_Path
protectedinherited

Smart pointer to the path

Definition at line 113 of file otbPolyLineImageConstIterator.h.

Referenced by otb::PolyLineImageConstIterator< TImage, TPath >::operator=().


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

Generated at Sun May 26 2013 04:06:14 for Orfeo Toolbox with doxygen 1.8.3.1