#include <stdio.h>
#include <string>
#include <memory>
#include <ARX/ARUtil/types.h>
Go to the source code of this file.
|
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) |
|
◆ 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 |
|
) |
| |
◆ WriteImageTofile()
ARUTIL_EXTERN bool WriteImageTofile |
( |
unsigned char * |
data, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
stride, |
|
|
std::string |
fileName, |
|
|
bool |
colourImage = false |
|
) |
| |