Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
ImageFile Class Reference

Static Public Member Functions

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...
 

Static Protected Member Functions

template<class T >
static void initialize (T &, const std::type_info &t, const Geometry &g)
 Sets target type and geometry. More...
 

Static Protected Attributes

static int index
 

Member Function Documentation

◆ 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
T- Image or ImageFrame

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