|
static void | read (Image &img, const std::string &path) |
|
static void | readFrame (ImageFrame &img, const std::string &path) |
|
static void | write (const ImageFrame &img, const std::string &path) |
|
static void | writeIndexed (const ImageFrame &image, const std::string &pathPrefix, int i=-1, int digits=3) |
| Writes image to a file, naming it: prefix + index + ".png", using desired number of leading zeros. More...
|
|
|
template<class T > |
static void | initialize (T &, const std::type_info &t, const Geometry &g) |
| Sets target type and geometry. More...
|
|
◆ initialize()
static void initialize |
( |
T & |
, |
|
|
const std::type_info & |
t, |
|
|
const Geometry & |
g |
|
) |
| |
|
staticprotected |
Sets target type and geometry.
In the case of ImageFrame (typically, an image channel), type and geometry have to match already; otherwise an exception is thrown.
- Template Parameters
-
◆ writeIndexed()
void writeIndexed |
( |
const ImageFrame & |
image, |
|
|
const std::string & |
pathPrefix, |
|
|
int |
i = -1 , |
|
|
int |
digits = 3 |
|
) |
| |
|
static |
Writes image to a file, naming it: prefix + index + ".png", using desired number of leading zeros.
Utility function esp. for debugging
- Parameters
-
image | - image |
pathPrefix | - leading part of the path: directory and filename prefix. |
The documentation for this class was generated from the following files:
- src/drain/image/ImageFile.h
- src/drain/image/ImageFile.cpp