OTB  9.0.0
Orfeo Toolbox
otb::internals::PixelComponentIterator< TPixel, ConstOrMutable, Dispatch > Class Template Reference

#include <otbPixelComponentIterator.h>

+ Inheritance diagram for otb::internals::PixelComponentIterator< TPixel, ConstOrMutable, Dispatch >:

Detailed Description

template<typename TPixel, typename ConstOrMutable, class Dispatch = void>
class otb::internals::PixelComponentIterator< TPixel, ConstOrMutable, Dispatch >

Declares an iterator type over pixel components. Given a pixel, a component iterator permits to iterates over the components of a pixel.

For instance, it can be used to convert from a itk::FixedArray<std::complex<double>, 5> pixel into a itk::VariableLengthVector<float> pixel of size 10 with std::copy().

Template Parameters
TPixelAny kind of pixel. It could be a scalar, a std::complex<>, a statically bound array, or a dynamic itk::VariableLengthVector<> of scalars or even of complexes.
ConstOrMutableTags that tells whether the pixel iterated is const or mutable.
DispatchInternal type to select the right specialization.
Invariant
m_pixel != nullptr, statically ensured
if not is_at_end() then the iterator can be dereferenced
Note
This is the internal type, it's not meant to be used directly.
See also
otb::PixelComponentIterator, otb::PixelComponentConstIterator, otb::PixelRange()

Definition at line 63 of file otbPixelComponentIterator.h.


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