cvd/colourspace_convert.h

00001 /*                       
00002     This file is part of the CVD Library.
00003 
00004     Copyright (C) 2005 The Authors
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Lesser General Public
00008     License as published by the Free Software Foundation; either
00009     version 2.1 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Lesser General Public License for more details.
00015 
00016     You should have received a copy of the GNU Lesser General Public
00017     License along with this library; if not, write to the Free Software
00018     Foundation, Inc., 
00019     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00020 */
00021 #include <cvd/image_convert_fwd.h>
00022 #include <cvd/colourspaces.h>
00023 #include <cvd/byte.h>
00024 #include <cvd/rgb.h>
00025 #include <cvd/image_convert.h>
00026 
00027 
00028 namespace CVD
00029 {
00030         
00035     template<> void convert_image(const BasicImage<bayer>& from, BasicImage<byte>& to); 
00036     
00041     template<> void convert_image(const BasicImage<bayer>& from, BasicImage<Rgb<byte> >& to);
00042      
00043     
00048     template<> void convert_image(const BasicImage<yuv411>& from, BasicImage<Rgb<byte> >& to);
00049 
00050 
00055     template<> void convert_image(const BasicImage<yuv411>& from, BasicImage<byte>& to);
00056     
00061     template<> void convert_image(const BasicImage<yuv422>& from, BasicImage<Rgb<byte> >& to);
00062       
00063 
00068     template<> void convert_image(const BasicImage<yuv422>& from, BasicImage<byte>& to);
00069 
00070     // Name changed from 'convert_image' to prevent conflict with previous convert_image
00071     // with same method signature.
00072 
00076     template<> std::pair<Image<byte>,Image<Rgb<byte> > > convert_image_pair(const BasicImage<yuv411>& from);
00077     
00078     
00083     template<> void convert_image(const BasicImage<vuy422>& from, BasicImage<Rgb<byte> >& to);
00084     
00089     template<> void convert_image(const BasicImage<vuy422>& from, BasicImage<byte>& to);    
00090 }

Generated on Wed Feb 18 10:23:00 2009 for CVD by  doxygen 1.5.3