VIGRA - VIGRA: Wrap aref vigra::MultiArrayView in

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

| Wrap aref vigra::MultiArrayView in |

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

## Detailed Description

a vigra::BasicImageView

## Function Documentation

template<class T>
BasicImageView<T> vigra::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.

template<class T>
BasicImageView<T> vigra::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.

template<class T>
BasicImageView<RGBValue<T> > vigra::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 (ullrich.koethe@iwr.uni-heidelberg.de) Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany | html generated using doxygen and Python VIGRA 1.6.0 (13 Aug 2008)