![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
#include <ARX/ARUtil/image_utils.h>
#include <memory>
#include <stb_image/stb_image_write.h>
#include <stb_image/stb_image.h>
Macros | |
#define | STB_IMAGE_WRITE_IMPLEMENTATION |
#define | STB_IMAGE_IMPLEMENTATION |
Functions | |
std::string | getFileExtension (const std::string &filename) |
bool | ReadImageFromFile (const char *fileName, std::shared_ptr< unsigned char > &refImage, int *cols, int *rows, int *nc, bool forceMono) |
bool | WriteImageTofile (unsigned char *data, int width, int height, int stride, std::string fileName, bool colourImage) |
void | ReleaseSTBImage (unsigned char *data) |
#define STB_IMAGE_IMPLEMENTATION |
#define STB_IMAGE_WRITE_IMPLEMENTATION |
std::string getFileExtension | ( | const std::string & | filename | ) |
bool ReadImageFromFile | ( | const char * | fileName, |
std::shared_ptr< unsigned char > & | refImage, | ||
int * | cols, | ||
int * | rows, | ||
int * | nc, | ||
bool | forceMono | ||
) |
void ReleaseSTBImage | ( | unsigned char * | data | ) |
bool WriteImageTofile | ( | unsigned char * | data, |
int | width, | ||
int | height, | ||
int | stride, | ||
std::string | fileName, | ||
bool | colourImage | ||
) |