contrib/oul/ouml/image_convert.h
Go to the documentation of this file.
00001 #ifndef image_convert__INCLUDED
00002 #define image_convert__INCLUDED
00003 
00004 #include <vil1/vil1_memory_image_of.h>
00005 #include <vil1/vil1_rgb.h>
00006 
00007 template <class T1, class T2>
00008 vil1_memory_image_of<T2> *convert_image
00009 (
00010   const vil1_memory_image_of<T1> &from,
00011   T2 &var
00012 );
00013 
00014 template <> vil1_memory_image_of<unsigned char> *
00015 convert_image<vil1_rgb<unsigned char>, unsigned char>
00016 ( 
00017   const vil1_memory_image_of<vil1_rgb<unsigned char> > &from,
00018   unsigned char &var
00019 );
00020 
00021 template <> vil1_memory_image_of<double> *
00022 convert_image<vil1_rgb<unsigned char>, double>
00023 ( 
00024   const vil1_memory_image_of<vil1_rgb<unsigned char> > &from,
00025   double &var
00026 );
00027 
00028 #endif // image_convert__INCLUDED