31 #ifndef DRAIN_IMAGE_IMAGEFILE_H_
32 #define DRAIN_IMAGE_IMAGEFILE_H_
34 #include "MagickDrain.h"
38 #include "ImageChannel.h"
56 void read(
Image &img,
const std::string & path);
74 void readFrame(
ImageFrame &img,
const std::string & path);
113 void write(
const ImageFrame &img,
const std::string &path);
Definition: Geometry.h:145
Definition: ImageFile.h:52
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.
Definition: ImageFile.cpp:116
static void initialize(T &, const std::type_info &t, const Geometry &g)
Sets target type and geometry.
Image with static geometry.
Definition: ImageFrame.h:67
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Definition: DataSelector.cpp:1277