MIRA
Public Types | Static Public Member Functions | List of all members
ImageAccessor< mira::Img< TPixel, TChannels > > Struct Template Reference

#include <python/ImageWrapper.h>

Inheritance diagram for ImageAccessor< mira::Img< TPixel, TChannels > >:
Inheritance graph
[legend]

Public Types

typedef mira::Img< TPixel, TChannels > ImgType
 

Static Public Member Functions

static void setMat (ImgType &image, const boost::python::numeric::array &arr)
 Set image matrix from numpy.ndarray. More...
 
static boost::python::object getMat (const mira::Img< TPixel, TChannels > &image)
 Get image matrix as numpy.ndarray. More...
 
static cv::Mat arrayToMat (const boost::python::numeric::array &arr)
 

Member Typedef Documentation

◆ ImgType

typedef mira::Img<TPixel, TChannels> ImgType

Member Function Documentation

◆ setMat()

static void setMat ( ImgType image,
const boost::python::numeric::array &  arr 
)
inlinestatic

Set image matrix from numpy.ndarray.

Parameters
imagemira::Img

◆ getMat()

static boost::python::object getMat ( const mira::Img< TPixel, TChannels > &  image)
inlinestaticinherited

Get image matrix as numpy.ndarray.

Parameters
imagemira::Img

◆ arrayToMat()

static cv::Mat arrayToMat ( const boost::python::numeric::array &  arr)
inlinestaticinherited

The documentation for this struct was generated from the following file: