libigl v2.5.0
|
Functions | |
bool | read_image (const std::string image_file, Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &R, Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &G, Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &B, Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &A) |
bool | write_image (const std::string image_file, const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &R, const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &G, const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &B, const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &A, const int quality=90) |
Writes an image to a file. | |
bool | write_image (const std::string image_file, const int width, const int height, const unsigned char *rgba_data, const int quality=90) |
Raw image writer. | |
bool igl::stb::read_image | ( | const std::string | image_file, |
Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > & | R, | ||
Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > & | G, | ||
Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > & | B, | ||
Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > & | A | ||
) |
bool igl::stb::write_image | ( | const std::string | image_file, |
const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > & | R, | ||
const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > & | G, | ||
const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > & | B, | ||
const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > & | A, | ||
const int | quality = 90 |
||
) |
Writes an image to a file.
Supported file formats (based on STB):
JPEG PNG TGA BMP
[in] | R | red channel |
[in] | G | green channel |
[in] | B | blue channel |
[in] | A | alpha channel |
[in] | image_file | path to image file |
[in] | quality | (only for jpg file) jpeg quality |
bool igl::stb::write_image | ( | const std::string | image_file, |
const int | width, | ||
const int | height, | ||
const unsigned char * | rgba_data, | ||
const int | quality = 90 |
||
) |
Raw image writer.
[in] | image_file | path to image file |
[in] | width | image width |
[in] | height | image height |
[in] | rgba_data | raw image data |
[in] | quality | (only for jpg file) jpeg quality |