[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]

| Wrap a \ref vigra::MultiArrayView in |
--- | --- | ---

## Functions

template<class T> BasicImageView< T > | makeBasicImageView (MultiArrayView< 2, T, UnstridedArrayTag > const &array)
template<class T> BasicImageView< T > | makeBasicImageView (MultiArray< 3, T > const &array)
template<class T> BasicImageView< RGBValue< T > > | makeRGBImageView (MultiArray< 3, T > const &array)

## Detailed Description

a vigra::BasicImageView

## Function Documentation

BasicImageView<T> makeBasicImageView | ( | MultiArray< 3, T > const & | array | ) |

| Create a vigra::BasicImageView from a 3-dimensional vigra::MultiArray. This wrapper flattens the two innermost dimensions of the array into single rows of the resulting image. The vigra::BasicImageView will have the same `value_type` as the original vigra::MultiArray.

BasicImageView<T> makeBasicImageView | ( | MultiArrayView< 2, T, UnstridedArrayTag > const & | array | ) |

| Create a vigra::BasicImageView from an unstrided 2-dimensional vigra::MultiArrayView. The vigra::BasicImageView will have the same `value_type` as the original vigra::MultiArrayView.

BasicImageView<RGBValue<T> > makeRGBImageView | ( | MultiArray< 3, T > const & | array | ) |

| Create a vigra::BasicImageView from a 3-dimensional vigra::MultiArray. This wrapper only works if `T` is a scalar type and the array's innermost dimension has size 3. It then re-interprets the data array as a 2-dimensional array with value_type `RGBValue< T >`.

© Ullrich Köthe (koethe@informatik.uni-hamburg.de) Cognitive Systems Group, University of Hamburg, Germany | html generated using doxygen and Python VIGRA 1.4.0 (21 Dec 2005)