iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GenericImageInst.H
Go to the documentation of this file.
1 /*! @file
2  @author Randolph Voorhies
3  @copyright GNU Public License (GPL v3)
4  @section License
5  @verbatim
6  // ////////////////////////////////////////////////////////////////////////
7  // The iLab Neuromorphic Robotics Toolkit (NRT) //
8  // Copyright 2010-2012 by the University of Southern California (USC) //
9  // and the iLab at USC. //
10  // //
11  // iLab - University of Southern California //
12  // Hedco Neurociences Building, Room HNB-10 //
13  // Los Angeles, Ca 90089-2520 - USA //
14  // //
15  // See http://ilab.usc.edu for information about this project. //
16  // ////////////////////////////////////////////////////////////////////////
17  // This file is part of The iLab Neuromorphic Robotics Toolkit. //
18  // //
19  // The iLab Neuromorphic Robotics Toolkit is free software: you can //
20  // redistribute it and/or modify it under the terms of the GNU General //
21  // Public License as published by the Free Software Foundation, either //
22  // version 3 of the License, or (at your option) any later version. //
23  // //
24  // The iLab Neuromorphic Robotics Toolkit is distributed in the hope //
25  // that it will be useful, but WITHOUT ANY WARRANTY; without even the //
26  // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //
27  // PURPOSE. See the GNU General Public License for more details. //
28  // //
29  // You should have received a copy of the GNU General Public License //
30  // along with The iLab Neuromorphic Robotics Toolkit. If not, see //
31  // <http://www.gnu.org/licenses/>. //
32  // ////////////////////////////////////////////////////////////////////////
33  @endverbatim */
34 #include <nrt/config.h>
35 #ifdef NRT_USE_EXPLICIT_INSTANTIATIONS
36 
37 // forward decl
38 namespace cereal { class BinaryInputArchive; class BinaryOutputArchive; }
39 
40 namespace nrt
41 {
42  extern template void GenericImage::serialize<>(cereal::BinaryInputArchive & ar);
43  extern template void GenericImage::serialize<>(cereal::BinaryOutputArchive & ar);
44 
45  extern template bool GenericImage::isa<Image<PixGray<byte>>>() const;
46  extern template bool GenericImage::isa<Image<PixGray<uint16_t>>>() const;
47  extern template bool GenericImage::isa<Image<PixGray<int>>>() const;
48  extern template bool GenericImage::isa<Image<PixGray<float>>>() const;
49  extern template bool GenericImage::isa<Image<PixRGB<byte>>>() const;
50  extern template bool GenericImage::isa<Image<PixRGB<int>>>() const;
51  extern template bool GenericImage::isa<Image<PixRGB<float>>>() const;
52  extern template bool GenericImage::isa<Image<PixHSV<byte>>>() const;
53  extern template bool GenericImage::isa<Image<PixHSV<int>>>() const;
54  extern template bool GenericImage::isa<Image<PixHSV<float>>>() const;
55  extern template bool GenericImage::isa<Image<PixRGBA<byte>>>() const;
56  extern template bool GenericImage::isa<Image<PixRGBA<int>>>() const;
57  extern template bool GenericImage::isa<Image<PixRGBA<float>>>() const;
58 
59  extern template bool GenericImage::hasPixels<PixGray<byte>>() const;
60  extern template bool GenericImage::hasPixels<PixGray<uint16_t>>() const;
61  extern template bool GenericImage::hasPixels<PixGray<int>>() const;
62  extern template bool GenericImage::hasPixels<PixGray<float>>() const;
63  extern template bool GenericImage::hasPixels<PixRGB<byte>>() const;
64  extern template bool GenericImage::hasPixels<PixRGB<int>>() const;
65  extern template bool GenericImage::hasPixels<PixRGB<float>>() const;
66  extern template bool GenericImage::hasPixels<PixHSV<byte>>() const;
67  extern template bool GenericImage::hasPixels<PixHSV<int>>() const;
68  extern template bool GenericImage::hasPixels<PixHSV<float>>() const;
69  extern template bool GenericImage::hasPixels<PixRGBA<byte>>() const;
70  extern template bool GenericImage::hasPixels<PixRGBA<int>>() const;
71  extern template bool GenericImage::hasPixels<PixRGBA<float>>() const;
72 
73  extern template Image<PixGray<byte>> & GenericImage::get<PixGray<byte>> ();
74  extern template Image<PixGray<int>> & GenericImage::get<PixGray<int>> ();
75  extern template Image<PixGray<uint16_t>> & GenericImage::get<PixGray<uint16_t>> ();
76  extern template Image<PixGray<float>> & GenericImage::get<PixGray<float>> ();
77  extern template Image<PixRGB<byte>> & GenericImage::get<PixRGB<byte>> ();
78  extern template Image<PixRGB<int>> & GenericImage::get<PixRGB<int>> ();
79  extern template Image<PixRGB<float>> & GenericImage::get<PixRGB<float>> ();
80  extern template Image<PixHSV<byte>> & GenericImage::get<PixHSV<byte>> ();
81  extern template Image<PixHSV<int>> & GenericImage::get<PixHSV<int>> ();
82  extern template Image<PixHSV<float>> & GenericImage::get<PixHSV<float>> ();
83  extern template Image<PixRGBA<byte>> & GenericImage::get<PixRGBA<byte>> ();
84  extern template Image<PixRGBA<int>> & GenericImage::get<PixRGBA<int>> ();
85  extern template Image<PixRGBA<float>> & GenericImage::get<PixRGBA<float>> ();
86 
87  extern template Image<PixGray<byte>> const & GenericImage::get<PixGray<byte>> () const;
88  extern template Image<PixGray<uint16_t>> const & GenericImage::get<PixGray<uint16_t>> () const;
89  extern template Image<PixGray<int>> const & GenericImage::get<PixGray<int>> () const;
90  extern template Image<PixGray<float>> const & GenericImage::get<PixGray<float>> () const;
91  extern template Image<PixRGB<byte>> const & GenericImage::get<PixRGB<byte>> () const;
92  extern template Image<PixRGB<int>> const & GenericImage::get<PixRGB<int>> () const;
93  extern template Image<PixRGB<float>> const & GenericImage::get<PixRGB<float>> () const;
94  extern template Image<PixHSV<byte>> const & GenericImage::get<PixHSV<byte>> () const;
95  extern template Image<PixHSV<int>> const & GenericImage::get<PixHSV<int>> () const;
96  extern template Image<PixHSV<float>> const & GenericImage::get<PixHSV<float>> () const;
97  extern template Image<PixRGBA<byte>> const & GenericImage::get<PixRGBA<byte>> () const;
98  extern template Image<PixRGBA<int>> const & GenericImage::get<PixRGBA<int>> () const;
99  extern template Image<PixRGBA<float>> const & GenericImage::get<PixRGBA<float>> () const;
100 
101  extern template Image<PixGray<byte>> GenericImage::convertTo<PixGray<byte>> () const;
102  extern template Image<PixGray<uint16_t>> GenericImage::convertTo<PixGray<uint16_t>> () const;
103  extern template Image<PixGray<int>> GenericImage::convertTo<PixGray<int>> () const;
104  extern template Image<PixGray<float>> GenericImage::convertTo<PixGray<float>> () const;
105  extern template Image<PixRGB<byte>> GenericImage::convertTo<PixRGB<byte>> () const;
106  extern template Image<PixRGB<int>> GenericImage::convertTo<PixRGB<int>> () const;
107  extern template Image<PixRGB<float>> GenericImage::convertTo<PixRGB<float>> () const;
108  extern template Image<PixHSV<byte>> GenericImage::convertTo<PixHSV<byte>> () const;
109  extern template Image<PixHSV<int>> GenericImage::convertTo<PixHSV<int>> () const;
110  extern template Image<PixHSV<float>> GenericImage::convertTo<PixHSV<float>> () const;
111  extern template Image<PixRGBA<byte>> GenericImage::convertTo<PixRGBA<byte>> () const;
112  extern template Image<PixRGBA<int>> GenericImage::convertTo<PixRGBA<int>> () const;
113  extern template Image<PixRGBA<float>> GenericImage::convertTo<PixRGBA<float>> () const;
114 }
115 #endif // NRT_USE_EXPLICIT_INSTANTIATIONS