dip_vigra_interface.h file

This file defines the dip_vigra namespace, functionality to interface Vigra and DIPlib.

Contents

Namespaces

namespace dip_vigra
The dip_vigra namespace contains the interface between Vigra and DIPlib.

Functions

template<unsigned int Dimensionality, typename PixelType, typename StrideTag>
auto dip_vigra::VigraToDip(vigra::MultiArrayView<Dimensionality, PixelType, StrideTag> const& input) -> dip::Image
Creates a DIPlib image around a Vigra vigra::MultiArrayView, without taking ownership of the data.
template<unsigned int Dimensionality, typename PixelType>
auto dip_vigra::DipToVigra(dip::Image const& img) -> vigra::MultiArrayView<Dimensionality, PixelType, vigra::StridedArrayTag>
Creates a Vigra vigra::MultiArrayView object around a DIPlib image, without taking ownership of the data.
template<unsigned int Dimensionality, typename PixelType>
auto dip_vigra::CopyDipToVigra(dip::Image const& img) -> vigra::MultiArray<Dimensionality, PixelType>
Creates a Vigra vigra::MultiArrayView object from a DIPlib image by copy.