CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Functions
Loading, saving and showing images using the CImg library
special purpose functions
Collaboration diagram for Loading, saving and showing images using the CImg library:

Functions

template<class V , class M >
void cuv::libs::cimg::show (const tensor< V, host_memory_space, M > &m, const std::string &name)
 show an image stored in a tensor
template<class V , class M >
void cuv::libs::cimg::load (tensor< V, host_memory_space, M > &m, const std::string &name)
 load an image in a tensor
template<class V , class M >
void cuv::libs::cimg::save (tensor< V, host_memory_space, M > &m, const std::string &name)
 save an image stored in a tensor

Detailed Description

Function Documentation

template<class V , class M >
void cuv::libs::cimg::load ( tensor< V, host_memory_space, M > &  m,
const std::string &  name 
)

load an image in a tensor

the image will be either a 2d tensor or a 3d-tensor where the 1st dimension has size 3 (color).

Parameters
mthe image
namename of the file
template<class V , class M >
void cuv::libs::cimg::save ( tensor< V, host_memory_space, M > &  m,
const std::string &  name 
)

save an image stored in a tensor

the image has to be either a 2d tensor or a 3d-tensor where the 1st dimension has size 3 (color).

Parameters
mthe image
namename of the file
template<class V , class M >
void cuv::libs::cimg::show ( const tensor< V, host_memory_space, M > &  m,
const std::string &  name 
)

show an image stored in a tensor

the image has to be either a 2d tensor or a 3d-tensor where the 1st dimension has size 3 (color).

Parameters
mthe image
namename of the window