OTB
9.0.0
Orfeo Toolbox
|
#include <otbPixelComponentIterator.h>
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()
.
TPixel | Any 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. |
ConstOrMutable | Tags that tells whether the pixel iterated is const or mutable. |
Dispatch | Internal type to select the right specialization. |
m_pixel != nullptr
, statically ensured is_at_end()
then the iterator can be dereferencedDefinition at line 63 of file otbPixelComponentIterator.h.