ARX  1.2.0
The next-generation open source augmented reality toolkit.
Loading...
Searching...
No Matches
image_utils.cpp File Reference
#include <ARX/ARUtil/image_utils.h>
#include <memory>
#include <stb_image/stb_image_write.h>
#include <stb_image/stb_image.h>
Include dependency graph for image_utils.cpp:

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)

Macro Definition Documentation

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

◆ STB_IMAGE_WRITE_IMPLEMENTATION

#define STB_IMAGE_WRITE_IMPLEMENTATION

Function Documentation

◆ getFileExtension()

std::string getFileExtension ( const std::string & filename)
Here is the call graph for this function:

◆ ReadImageFromFile()

bool ReadImageFromFile ( const char * fileName,
std::shared_ptr< unsigned char > & refImage,
int * cols,
int * rows,
int * nc,
bool forceMono )
Here is the call graph for this function:

◆ ReleaseSTBImage()

void ReleaseSTBImage ( unsigned char * data)
Here is the call graph for this function:

◆ WriteImageTofile()

bool WriteImageTofile ( unsigned char * data,
int width,
int height,
int stride,
std::string fileName,
bool colourImage )
Here is the call graph for this function: