7 #ifndef IMPEM2D_IMAGE_READER_WRITER_H
8 #define IMPEM2D_IMAGE_READER_WRITER_H
10 #include "IMP/em2d/em2d_config.h"
16 IMPEM2D_BEGIN_NAMESPACE
21 ImageReaderWriter(): Object(
"ImageReaderWriter%1%"){}
22 virtual void read(
const String &filename, em::ImageHeader& header,
23 cv::Mat &data)
const = 0;
25 virtual void read_from_floats(
const String &filename, em::ImageHeader& header,
26 cv::Mat &data)
const = 0;
28 virtual void read_from_ints(
const String &filename, em::ImageHeader& header,
29 cv::Mat &data)
const = 0;
31 virtual void write(
const String &filename, em::ImageHeader& header,
32 const cv::Mat &data)
const = 0;
34 virtual void write_to_floats(
const String &filename,
35 em::ImageHeader& header,
36 const cv::Mat &data)
const = 0;
38 virtual void write_to_ints(
const String &filename,
39 em::ImageHeader& header,
40 const cv::Mat &data)
const = 0;
43 { out <<
"I am an ImageReaderWriter"; }, {});