1 #ifndef CVD_INCLUDE_COLOURSPACE_CONVERT_H 2 #define CVD_INCLUDE_COLOURSPACE_CONVERT_H 4 #include <cvd/colourspaces.h> 5 #include <cvd/convert_image.h> 16 void convert_image(
const BasicImage<bayer_bggr>& from, BasicImage<byte>& to);
18 void convert_image(
const BasicImage<bayer_grbg>& from, BasicImage<byte>& to);
20 void convert_image(
const BasicImage<bayer_gbrg>& from, BasicImage<byte>& to);
22 void convert_image(
const BasicImage<bayer_rggb>& from, BasicImage<byte>& to);
29 void convert_image(
const BasicImage<bayer_bggr>& from, BasicImage<Rgb<byte>>& to);
31 void convert_image(
const BasicImage<bayer_grbg>& from, BasicImage<Rgb<byte>>& to);
33 void convert_image(
const BasicImage<bayer_gbrg>& from, BasicImage<Rgb<byte>>& to);
35 void convert_image(
const BasicImage<bayer_rggb>& from, BasicImage<Rgb<byte>>& to);
42 void convert_image(
const BasicImage<bayer_bggr16>& from, BasicImage<unsigned short>& to);
44 void convert_image(
const BasicImage<bayer_grbg16>& from, BasicImage<unsigned short>& to);
46 void convert_image(
const BasicImage<bayer_gbrg16>& from, BasicImage<unsigned short>& to);
48 void convert_image(
const BasicImage<bayer_rggb16>& from, BasicImage<unsigned short>& to);
55 void convert_image(
const BasicImage<bayer_bggr16>& from, BasicImage<Rgb<unsigned short>>& to);
57 void convert_image(
const BasicImage<bayer_grbg16>& from, BasicImage<Rgb<unsigned short>>& to);
59 void convert_image(
const BasicImage<bayer_gbrg16>& from, BasicImage<Rgb<unsigned short>>& to);
61 void convert_image(
const BasicImage<bayer_rggb16>& from, BasicImage<Rgb<unsigned short>>& to);
68 void convert_image(
const BasicImage<bayer_bggr16be>& from, BasicImage<unsigned short>& to);
70 void convert_image(
const BasicImage<bayer_grbg16be>& from, BasicImage<unsigned short>& to);
72 void convert_image(
const BasicImage<bayer_gbrg16be>& from, BasicImage<unsigned short>& to);
74 void convert_image(
const BasicImage<bayer_rggb16be>& from, BasicImage<unsigned short>& to);
81 void convert_image(
const BasicImage<bayer_bggr16be>& from, BasicImage<Rgb<unsigned short>>& to);
83 void convert_image(
const BasicImage<bayer_grbg16be>& from, BasicImage<Rgb<unsigned short>>& to);
85 void convert_image(
const BasicImage<bayer_gbrg16be>& from, BasicImage<Rgb<unsigned short>>& to);
87 void convert_image(
const BasicImage<bayer_rggb16be>& from, BasicImage<Rgb<unsigned short>>& to);
90 void convert_image(
const BasicImage<MJPEG>& from, BasicImage<Rgb<byte>>& to);
109 void convert_image(
const BasicImage<yuv422>& from, BasicImage<Rgb<byte>>& to);
116 void convert_image(
const BasicImage<yuv422>& from, BasicImage<byte>& to);
131 void convert_image(
const BasicImage<vuy422>& from, BasicImage<Rgb<byte>>& to);
138 void convert_image(
const BasicImage<vuy422>& from, BasicImage<byte>& to);
145 void convert_image(
const BasicImage<yuv420p>& from, BasicImage<Rgb<byte>>& to);
152 void convert_image(
const BasicImage<yuv420p>& from, BasicImage<byte>& to);
159 static const bool is = 1;
164 static const bool is = 1;
169 static const bool is = 1;
174 static const bool is = 1;
179 static const bool is = 1;
184 static const bool is = 1;
189 static const bool is = 1;
194 static const bool is = 1;
199 static const bool is = 1;
204 static const bool is = 1;
209 static const bool is = 1;
214 static const bool is = 1;
219 static const bool is = 1;
224 static const bool is = 1;
229 static const bool is = 1;
234 static const bool is = 1;
239 static const bool is = 1;
244 static const bool is = 1;
249 static const bool is = 1;
254 static const bool is = 1;
259 static const bool is = 1;
264 static const bool is = 1;
269 static const bool is = 1;
274 static const bool is = 1;
279 static const bool is = 1;
284 static const bool is = 1;
289 static const bool is = 1;
294 static const bool is = 1;
299 static const bool is = 1;
Can two types be converted with CVD::convert_image?
Definition: convert_image.h:170
A datatype to represent yuv420p (yy...u...v) data.
Definition: colourspaces.h:202
A colour consisting of red, green and blue components.
Definition: rgb.h:25
All classes and functions are within the CVD namespace.
Definition: argb.h:6
16bit Bayer datatype representing the colour filter pattern GRBG
Definition: colourspaces.h:92
16bit big endian Bayer datatype representing the colour filter pattern RGGB
Definition: colourspaces.h:157
A datatype to represent MJPEG data.
Definition: colourspaces.h:185
16bit Bayer datatype representing the colour filter pattern GBRG
Definition: colourspaces.h:79
16bit Bayer datatype representing the colour filter pattern RGGB
Definition: colourspaces.h:105
16 bit Bayer datatype representing the colour filter pattern BGGR
Definition: colourspaces.h:66
Bayer datatype representing the colour filter pattern GRBG.
Definition: colourspaces.h:40
Bayer datatype representing the colour filter pattern GBRG.
Definition: colourspaces.h:27
unsigned char byte
An 8-bit datatype.
Definition: byte.h:8
16 bit big endian Bayer datatype representing the colour filter pattern BGGR
Definition: colourspaces.h:118
void convert_image(const BasicImage< bayer_bggr > &from, BasicImage< byte > &to)
Convert Bayer pattern of various forms to greyscale data.
16bit big endian Bayer datatype representing the colour filter pattern GRBG
Definition: colourspaces.h:144
Bayer datatype representing the colour filter pattern BGGR.
Definition: colourspaces.h:14
A datatype to represent yuv422 (yuyv) data.
Definition: colourspaces.h:192
Bayer datatype representing the colour filter pattern RGGB.
Definition: colourspaces.h:53
16bit big endian Bayer datatype representing the colour filter pattern GBRG
Definition: colourspaces.h:131