00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef IMAGE_GIO_H
00010 #define IMAGE_GIO_H
00011
00012 #include <graphics/GraphicsInterface.hpp>
00013 #include <image/Image.hpp>
00014
00015 namespace imaging
00016 {
00021 GraphicsInterface & operator<<(GraphicsInterface & out, const ColorImage2d & image);
00022
00023 template <std::size_t N, class DATA_t>
00024 GraphicsInterface & operator<<(GraphicsInterface & out, const Image<N, DATA_t> & image)
00025 {
00026 ColorImage2d colour_image(image.size());
00027
00028 colour_image = image;
00029
00030 out << colour_image;
00031
00032 return out;
00033 }
00034
00035 }
00036
00037
00038 #endif