00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CVD_COLOURSPACE_H
00022 #define CVD_COLOURSPACE_H
00023
00024 namespace CVD
00025 {
00027 namespace ColourSpace
00028 {
00033 void yuv411_to_rgb(const unsigned char* yuv411, int npix, unsigned char* out);
00038 void yuv411_to_y(const unsigned char* yuv411, int npix, unsigned char* out);
00044 void yuv411_to_rgb_y(const unsigned char* yuv411, int npix, unsigned char* outc, unsigned char* outy);
00045
00046
00052 void bayer_to_grey_bggr(const unsigned char* bggr, unsigned char* grey, unsigned int width, unsigned int height);
00053
00059 void bayer_to_grey_gbrg(const unsigned char* gbrg, unsigned char* grey, unsigned int width, unsigned int height);
00060
00066 void bayer_to_grey_grbg(const unsigned char* grbg, unsigned char* grey, unsigned int width, unsigned int height);
00067
00073 void bayer_to_grey_rggb(const unsigned char* rggb, unsigned char* grey, unsigned int width, unsigned int height);
00074
00080 void bayer_to_rgb_bggr(const unsigned char* bggr, unsigned char* rgb, unsigned int width, unsigned int height);
00081
00087 void bayer_to_rgb_gbrg(const unsigned char* gbrg, unsigned char* rgb, unsigned int width, unsigned int height);
00088
00094 void bayer_to_rgb_grbg(const unsigned char* grbg, unsigned char* rgb, unsigned int width, unsigned int height);
00095
00101 void bayer_to_rgb_rggb(const unsigned char* rggb, unsigned char* rgb, unsigned int width, unsigned int height);
00102
00108 void bayer_to_grey_bggr(const unsigned short* bggr, unsigned short* grey, unsigned int width, unsigned int height);
00109
00115 void bayer_to_grey_gbrg(const unsigned short* gbrg, unsigned short* grey, unsigned int width, unsigned int height);
00116
00122 void bayer_to_grey_grbg(const unsigned short* grbg, unsigned short* grey, unsigned int width, unsigned int height);
00123
00129 void bayer_to_grey_rggb(const unsigned short* rggb, unsigned short* grey, unsigned int width, unsigned int height);
00130
00136 void bayer_to_rgb_bggr(const unsigned short* bggr, unsigned short* rgb, unsigned int width, unsigned int height);
00137
00143 void bayer_to_rgb_gbrg(const unsigned short* gbrg, unsigned short* rgb, unsigned int width, unsigned int height);
00144
00150 void bayer_to_rgb_grbg(const unsigned short* grbg, unsigned short* rgb, unsigned int width, unsigned int height);
00151
00157 void bayer_to_rgb_rggb(const unsigned short* rggb, unsigned short* rgb, unsigned int width, unsigned int height);
00158
00164 void bayer_to_grey_bggr_be(const unsigned short* bggr, unsigned short* grey, unsigned int width, unsigned int height);
00165
00171 void bayer_to_grey_gbrg_be(const unsigned short* gbrg, unsigned short* grey, unsigned int width, unsigned int height);
00172
00178 void bayer_to_grey_grbg_be(const unsigned short* grbg, unsigned short* grey, unsigned int width, unsigned int height);
00179
00185 void bayer_to_grey_rggb_be(const unsigned short* rggb, unsigned short* grey, unsigned int width, unsigned int height);
00186
00192 void bayer_to_rgb_bggr_be(const unsigned short* bggr, unsigned short* rgb, unsigned int width, unsigned int height);
00193
00199 void bayer_to_rgb_gbrg_be(const unsigned short* gbrg, unsigned short* rgb, unsigned int width, unsigned int height);
00200
00206 void bayer_to_rgb_grbg_be(const unsigned short* grbg, unsigned short* rgb, unsigned int width, unsigned int height);
00207
00213 void bayer_to_rgb_rggb_be(const unsigned short* rggb, unsigned short* rgb, unsigned int width, unsigned int height);
00214
00220
00221 void yuv422_to_rgb(const unsigned char* yuv, unsigned char* rgb, unsigned int width, unsigned int height);
00222
00228 void yuv422_to_grey(const unsigned char* yuv, unsigned char* grey, unsigned int width, unsigned int height);
00229
00237 void yuv420p_to_rgb(const unsigned char* y, const unsigned char* u, const unsigned char* v,
00238 unsigned char* rgb, unsigned int width, unsigned int rowpairs);
00239
00247 void yuv420p_to_grey(const unsigned char* y, const unsigned char* u, const unsigned char* v,
00248 unsigned char* grey, unsigned int width, unsigned int height);
00249
00255 void vuy422_to_rgb(const unsigned char* yuv, unsigned char* rgb, unsigned int width, unsigned int height);
00256
00262 void vuy422_to_grey(const unsigned char* yuv, unsigned char* grey, unsigned int width, unsigned int height);
00263 }
00264 }
00265
00266 #endif