vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 > Class Template Reference

merge two scalar images into a vector image. More...

#include <FunctorAccessor.h>

List of all members.

Public Types

typedef vigra::TinyVector<
typename Acc1::value_type, 2 > 
value_type
 the vector's value_type
typedef value_type::value_type component_type

Public Member Functions

 MergeScalarScalar2VectorAccessor (Iter1 i1, Acc1 a1, Iter2 i2, Acc2 a2)
 Construct from two image iterators and associated accessors.
template<class DIFFERENCE_>
value_type operator() (DIFFERENCE_ const &d) const
 read the current data item
template<class ITERATOR>
component_type getComponent (ITERATOR const &i, int idx) const
 read one component
template<class ITERATOR, class DIFFERENCE_>
component_type const & getComponent (ITERATOR const &i, DIFFERENCE_ const &d, int idx) const
 read one component, with offset
template<class ITERATOR>
unsigned int size (ITERATOR const &i) const
 return the size (Number of Bands)

Public Attributes

Iter1 i1_
Acc1 a1_
Iter2 i2_
Acc2 a2_


Detailed Description

template<class Iter1, class Acc1, class Iter2, class Acc2>
class vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >

merge two scalar images into a vector image.

the inverse to SplitVector2Accessor.

Definition at line 246 of file FunctorAccessor.h.


Member Typedef Documentation

template<class Iter1, class Acc1, class Iter2, class Acc2>
typedef value_type::value_type vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::component_type

Definition at line 252 of file FunctorAccessor.h.

template<class Iter1, class Acc1, class Iter2, class Acc2>
typedef vigra::TinyVector<typename Acc1::value_type, 2> vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::value_type

the vector's value_type

Definition at line 251 of file FunctorAccessor.h.


Constructor & Destructor Documentation

template<class Iter1, class Acc1, class Iter2, class Acc2>
vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::MergeScalarScalar2VectorAccessor ( Iter1  i1,
Acc1  a1,
Iter2  i2,
Acc2  a2 
) [inline]

Construct from two image iterators and associated accessors.

Definition at line 256 of file FunctorAccessor.h.


Member Function Documentation

template<class Iter1, class Acc1, class Iter2, class Acc2>
template<class ITERATOR, class DIFFERENCE_>
component_type const& vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::getComponent ( ITERATOR const &  i,
DIFFERENCE_ const &  d,
int  idx 
) const [inline]

read one component, with offset

Definition at line 286 of file FunctorAccessor.h.

References vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::a1_, vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::a2_, vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::i1_, and vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::i2_.

template<class Iter1, class Acc1, class Iter2, class Acc2>
template<class ITERATOR>
component_type vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::getComponent ( ITERATOR const &  i,
int  idx 
) const [inline]

read one component

Definition at line 270 of file FunctorAccessor.h.

References vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::a1_, vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::a2_, vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::i1_, and vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::i2_.

template<class Iter1, class Acc1, class Iter2, class Acc2>
template<class DIFFERENCE_>
value_type vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::operator() ( DIFFERENCE_ const &  d  )  const [inline]

read the current data item

Definition at line 263 of file FunctorAccessor.h.

References vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::a1_, vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::a2_, vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::i1_, and vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::i2_.

template<class Iter1, class Acc1, class Iter2, class Acc2>
template<class ITERATOR>
unsigned int vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::size ( ITERATOR const &  i  )  const [inline]

return the size (Number of Bands)

Definition at line 301 of file FunctorAccessor.h.


Member Data Documentation

template<class Iter1, class Acc1, class Iter2, class Acc2>
Acc1 vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::a1_

Definition at line 307 of file FunctorAccessor.h.

Referenced by vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::getComponent(), and vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::operator()().

template<class Iter1, class Acc1, class Iter2, class Acc2>
Acc2 vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::a2_

Definition at line 309 of file FunctorAccessor.h.

Referenced by vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::getComponent(), and vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::operator()().

template<class Iter1, class Acc1, class Iter2, class Acc2>
Iter1 vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::i1_

Definition at line 306 of file FunctorAccessor.h.

Referenced by vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::getComponent(), and vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::operator()().

template<class Iter1, class Acc1, class Iter2, class Acc2>
Iter2 vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::i2_

Definition at line 308 of file FunctorAccessor.h.

Referenced by vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::getComponent(), and vigra_ext::MergeScalarScalar2VectorAccessor< Iter1, Acc1, Iter2, Acc2 >::operator()().


The documentation for this class was generated from the following file:
Generated on 26 Oct 2014 for Hugintrunk by  doxygen 1.4.7