ARX  1.0
The next-generation open source augmented reality toolkit.
Loading...
Searching...
No Matches
Functions
image_utils.h File Reference
#include <stdio.h>
#include <string>
#include <memory>
#include <ARX/ARUtil/types.h>
Include dependency graph for image_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ARUTIL_EXTERN std::string getFileExtension (const std::string &filename)
 
ARUTIL_EXTERN bool ReadImageFromFile (const char *fileName, std::shared_ptr< unsigned char > &refImage, int *cols, int *rows, int *nc, bool forceMono=false)
 
ARUTIL_EXTERN bool WriteImageTofile (unsigned char *data, int width, int height, int stride, std::string fileName, bool colourImage=false)
 

Function Documentation

◆ getFileExtension()

ARUTIL_EXTERN std::string getFileExtension ( const std::string &  filename)

◆ ReadImageFromFile()

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

◆ WriteImageTofile()

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