LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
image.hpp File Reference
#include "lbann/base.hpp"
Include dependency graph for image.hpp:

Go to the source code of this file.

Namespaces

 lbann
 

Functions

void lbann::load_image (const std::string &filename, El::Matrix< uint8_t > &dst, std::vector< size_t > &dims)
 Load an image from filename. More...
 
void lbann::decode_image (El::Matrix< uint8_t > &src, El::Matrix< uint8_t > &dst, std::vector< size_t > &dims)
 Decode an image from buf. More...
 
void lbann::save_image (const std::string &filename, El::Matrix< uint8_t > &src, const std::vector< size_t > &dims)
 Save an image to filename. More...
 
void lbann::save_image (const std::string &filename, const CPUMat &src, const std::vector< size_t > &dims)
 Save an image to filename. More...
 
El::Matrix< uint8_t > lbann::get_uint8_t_image (const CPUMat &image, const std::vector< size_t > &dims)
 Convert image from El::Matrix<DataType> to El::Matrix<uint8_t> More...
 
std::string lbann::encode_image (const El::Matrix< uint8_t > &image, const std::vector< size_t > &dims, std::string const &img_format)
 Encodes image to given format. More...