| ARX 1.0 The next-generation open source augmented reality toolkit.

Loading...
Searching...
No Matches
Macros | Functions
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 | ) |

## ◆ 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 | ) |

## ◆ 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: