gio.hpp

00001 // This file is part of the imaging2 class library.
00002 //
00003 // University of Innsbruck, Infmath Imaging, 2009.
00004 // http://infmath.uibk.ac.at
00005 //
00006 // All rights reserved.
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

Generated on Tue Feb 10 10:01:29 2009 for imaging2 by  doxygen 1.5.5