mexopencv  3.4.1
MEX interface for OpenCV library
cvtColor.cpp
Go to the documentation of this file.
1 
8 #include "mexopencv.hpp"
9 #include "opencv2/imgproc.hpp"
10 using namespace std;
11 using namespace cv;
12 
13 namespace {
16  // add alpha channel to RGB or BGR image
17  ("BGR2BGRA", cv::COLOR_BGR2BGRA)
18  ("RGB2RGBA", cv::COLOR_RGB2RGBA)
19  // remove alpha channel from RGB or BGR image
20  ("BGRA2BGR", cv::COLOR_BGRA2BGR)
21  ("RGBA2RGB", cv::COLOR_RGBA2RGB)
22  // convert between RGB and BGR color spaces (with or without alpha channel)
23  ("BGR2RGBA", cv::COLOR_BGR2RGBA)
24  ("RGB2BGRA", cv::COLOR_RGB2BGRA)
25  ("RGBA2BGR", cv::COLOR_RGBA2BGR)
26  ("BGRA2RGB", cv::COLOR_BGRA2RGB)
27  ("BGR2RGB", cv::COLOR_BGR2RGB)
28  ("RGB2BGR", cv::COLOR_RGB2BGR)
29  ("BGRA2RGBA", cv::COLOR_BGRA2RGBA)
30  ("RGBA2BGRA", cv::COLOR_RGBA2BGRA)
31  // convert between RGB/BGR and grayscale
32  ("BGR2GRAY", cv::COLOR_BGR2GRAY)
33  ("RGB2GRAY", cv::COLOR_RGB2GRAY)
34  ("GRAY2BGR", cv::COLOR_GRAY2BGR)
35  ("GRAY2RGB", cv::COLOR_GRAY2RGB)
36  ("GRAY2BGRA", cv::COLOR_GRAY2BGRA)
37  ("GRAY2RGBA", cv::COLOR_GRAY2RGBA)
38  ("BGRA2GRAY", cv::COLOR_BGRA2GRAY)
39  ("RGBA2GRAY", cv::COLOR_RGBA2GRAY)
40  // convert between RGB/BGR and BGR565 (16-bit images)
41  ("BGR2BGR565", cv::COLOR_BGR2BGR565)
42  ("RGB2BGR565", cv::COLOR_RGB2BGR565)
43  ("BGR5652BGR", cv::COLOR_BGR5652BGR)
44  ("BGR5652RGB", cv::COLOR_BGR5652RGB)
45  ("BGRA2BGR565", cv::COLOR_BGRA2BGR565)
46  ("RGBA2BGR565", cv::COLOR_RGBA2BGR565)
47  ("BGR5652BGRA", cv::COLOR_BGR5652BGRA)
48  ("BGR5652RGBA", cv::COLOR_BGR5652RGBA)
49  // convert between grayscale and BGR565 (16-bit images)
50  ("GRAY2BGR565", cv::COLOR_GRAY2BGR565)
51  ("BGR5652GRAY", cv::COLOR_BGR5652GRAY)
52  // convert between RGB/BGR and BGR555 (16-bit images)
53  ("BGR2BGR555", cv::COLOR_BGR2BGR555)
54  ("RGB2BGR555", cv::COLOR_RGB2BGR555)
55  ("BGR5552BGR", cv::COLOR_BGR5552BGR)
56  ("BGR5552RGB", cv::COLOR_BGR5552RGB)
57  ("BGRA2BGR555", cv::COLOR_BGRA2BGR555)
58  ("RGBA2BGR555", cv::COLOR_RGBA2BGR555)
59  ("BGR5552BGRA", cv::COLOR_BGR5552BGRA)
60  ("BGR5552RGBA", cv::COLOR_BGR5552RGBA)
61  // convert between grayscale and BGR555 (16-bit images)
62  ("GRAY2BGR555", cv::COLOR_GRAY2BGR555)
63  ("BGR5552GRAY", cv::COLOR_BGR5552GRAY)
64  // convert between RGB/BGR and CIE XYZ
65  ("BGR2XYZ", cv::COLOR_BGR2XYZ)
66  ("RGB2XYZ", cv::COLOR_RGB2XYZ)
67  ("XYZ2BGR", cv::COLOR_XYZ2BGR)
68  ("XYZ2RGB", cv::COLOR_XYZ2RGB)
69  // convert between RGB/BGR and luma-chroma (aka YCC)
70  ("BGR2YCrCb", cv::COLOR_BGR2YCrCb)
71  ("RGB2YCrCb", cv::COLOR_RGB2YCrCb)
72  ("YCrCb2BGR", cv::COLOR_YCrCb2BGR)
73  ("YCrCb2RGB", cv::COLOR_YCrCb2RGB)
74  // convert between RGB/BGR and YUV
75  ("BGR2YUV", cv::COLOR_BGR2YUV)
76  ("RGB2YUV", cv::COLOR_RGB2YUV)
77  ("YUV2BGR", cv::COLOR_YUV2BGR)
78  ("YUV2RGB", cv::COLOR_YUV2RGB)
79  // convert between RGB/BGR and HSV (hue saturation value)
80  ("BGR2HSV", cv::COLOR_BGR2HSV)
81  ("RGB2HSV", cv::COLOR_RGB2HSV)
82  ("HSV2BGR", cv::COLOR_HSV2BGR)
83  ("HSV2RGB", cv::COLOR_HSV2RGB)
84  ("BGR2HSV_FULL", cv::COLOR_BGR2HSV_FULL)
85  ("RGB2HSV_FULL", cv::COLOR_RGB2HSV_FULL)
86  ("HSV2BGR_FULL", cv::COLOR_HSV2BGR_FULL)
87  ("HSV2RGB_FULL", cv::COLOR_HSV2RGB_FULL)
88  // convert between RGB/BGR and HLS (hue lightness saturation)
89  ("BGR2HLS", cv::COLOR_BGR2HLS)
90  ("RGB2HLS", cv::COLOR_RGB2HLS)
91  ("HLS2BGR", cv::COLOR_HLS2BGR)
92  ("HLS2RGB", cv::COLOR_HLS2RGB)
93  ("BGR2HLS_FULL", cv::COLOR_BGR2HLS_FULL)
94  ("RGB2HLS_FULL", cv::COLOR_RGB2HLS_FULL)
95  ("HLS2BGR_FULL", cv::COLOR_HLS2BGR_FULL)
96  ("HLS2RGB_FULL", cv::COLOR_HLS2RGB_FULL)
97  // convert between RGB/BGR and CIE Lab
98  ("BGR2Lab", cv::COLOR_BGR2Lab)
99  ("RGB2Lab", cv::COLOR_RGB2Lab)
100  ("Lab2BGR", cv::COLOR_Lab2BGR)
101  ("Lab2RGB", cv::COLOR_Lab2RGB)
102  ("LBGR2Lab", cv::COLOR_LBGR2Lab)
103  ("LRGB2Lab", cv::COLOR_LRGB2Lab)
104  ("Lab2LBGR", cv::COLOR_Lab2LBGR)
105  ("Lab2LRGB", cv::COLOR_Lab2LRGB)
106  // convert between RGB/BGR and CIE Luv
107  ("BGR2Luv", cv::COLOR_BGR2Luv)
108  ("RGB2Luv", cv::COLOR_RGB2Luv)
109  ("Luv2BGR", cv::COLOR_Luv2BGR)
110  ("Luv2RGB", cv::COLOR_Luv2RGB)
111  ("LBGR2Luv", cv::COLOR_LBGR2Luv)
112  ("LRGB2Luv", cv::COLOR_LRGB2Luv)
113  ("Luv2LBGR", cv::COLOR_Luv2LBGR)
114  ("Luv2LRGB", cv::COLOR_Luv2LRGB)
115  // YUV 4:2:0 family to RGB
116  ("YUV2RGB_NV12", cv::COLOR_YUV2RGB_NV12)
117  ("YUV2BGR_NV12", cv::COLOR_YUV2BGR_NV12)
118  ("YUV2RGB_NV21", cv::COLOR_YUV2RGB_NV21)
119  ("YUV2BGR_NV21", cv::COLOR_YUV2BGR_NV21)
120  ("YUV420sp2RGB", cv::COLOR_YUV420sp2RGB)
121  ("YUV420sp2BGR", cv::COLOR_YUV420sp2BGR)
122  ("YUV2RGBA_NV12", cv::COLOR_YUV2RGBA_NV12)
123  ("YUV2BGRA_NV12", cv::COLOR_YUV2BGRA_NV12)
124  ("YUV2RGBA_NV21", cv::COLOR_YUV2RGBA_NV21)
125  ("YUV2BGRA_NV21", cv::COLOR_YUV2BGRA_NV21)
126  ("YUV420sp2RGBA", cv::COLOR_YUV420sp2RGBA)
127  ("YUV420sp2BGRA", cv::COLOR_YUV420sp2BGRA)
128  ("YUV2RGB_YV12", cv::COLOR_YUV2RGB_YV12)
129  ("YUV2BGR_YV12", cv::COLOR_YUV2BGR_YV12)
130  ("YUV2RGB_IYUV", cv::COLOR_YUV2RGB_IYUV)
131  ("YUV2BGR_IYUV", cv::COLOR_YUV2BGR_IYUV)
132  ("YUV2RGB_I420", cv::COLOR_YUV2RGB_I420)
133  ("YUV2BGR_I420", cv::COLOR_YUV2BGR_I420)
134  ("YUV420p2RGB", cv::COLOR_YUV420p2RGB)
135  ("YUV420p2BGR", cv::COLOR_YUV420p2BGR)
136  ("YUV2RGBA_YV12", cv::COLOR_YUV2RGBA_YV12)
137  ("YUV2BGRA_YV12", cv::COLOR_YUV2BGRA_YV12)
138  ("YUV2RGBA_IYUV", cv::COLOR_YUV2RGBA_IYUV)
139  ("YUV2BGRA_IYUV", cv::COLOR_YUV2BGRA_IYUV)
140  ("YUV2RGBA_I420", cv::COLOR_YUV2RGBA_I420)
141  ("YUV2BGRA_I420", cv::COLOR_YUV2BGRA_I420)
142  ("YUV420p2RGBA", cv::COLOR_YUV420p2RGBA)
143  ("YUV420p2BGRA", cv::COLOR_YUV420p2BGRA)
144  ("YUV2GRAY_420", cv::COLOR_YUV2GRAY_420)
145  ("YUV2GRAY_NV21", cv::COLOR_YUV2GRAY_NV21)
146  ("YUV2GRAY_NV12", cv::COLOR_YUV2GRAY_NV12)
147  ("YUV2GRAY_YV12", cv::COLOR_YUV2GRAY_YV12)
148  ("YUV2GRAY_IYUV", cv::COLOR_YUV2GRAY_IYUV)
149  ("YUV2GRAY_I420", cv::COLOR_YUV2GRAY_I420)
150  ("YUV420sp2GRAY", cv::COLOR_YUV420sp2GRAY)
151  ("YUV420p2GRAY", cv::COLOR_YUV420p2GRAY)
152  // YUV 4:2:2 family to RGB
153  ("YUV2RGB_UYVY", cv::COLOR_YUV2RGB_UYVY)
154  ("YUV2BGR_UYVY", cv::COLOR_YUV2BGR_UYVY)
155  //("YUV2RGB_VYUY", cv::COLOR_YUV2RGB_VYUY)
156  //("YUV2BGR_VYUY", cv::COLOR_YUV2BGR_VYUY)
157  ("YUV2RGB_Y422", cv::COLOR_YUV2RGB_Y422)
158  ("YUV2BGR_Y422", cv::COLOR_YUV2BGR_Y422)
159  ("YUV2RGB_UYNV", cv::COLOR_YUV2RGB_UYNV)
160  ("YUV2BGR_UYNV", cv::COLOR_YUV2BGR_UYNV)
161  ("YUV2RGBA_UYVY", cv::COLOR_YUV2RGBA_UYVY)
162  ("YUV2BGRA_UYVY", cv::COLOR_YUV2BGRA_UYVY)
163  //("YUV2RGBA_VYUY", cv::COLOR_YUV2RGBA_VYUY)
164  //("YUV2BGRA_VYUY", cv::COLOR_YUV2BGRA_VYUY)
165  ("YUV2RGBA_Y422", cv::COLOR_YUV2RGBA_Y422)
166  ("YUV2BGRA_Y422", cv::COLOR_YUV2BGRA_Y422)
167  ("YUV2RGBA_UYNV", cv::COLOR_YUV2RGBA_UYNV)
168  ("YUV2BGRA_UYNV", cv::COLOR_YUV2BGRA_UYNV)
169  ("YUV2RGB_YUY2", cv::COLOR_YUV2RGB_YUY2)
170  ("YUV2BGR_YUY2", cv::COLOR_YUV2BGR_YUY2)
171  ("YUV2RGB_YVYU", cv::COLOR_YUV2RGB_YVYU)
172  ("YUV2BGR_YVYU", cv::COLOR_YUV2BGR_YVYU)
173  ("YUV2RGB_YUYV", cv::COLOR_YUV2RGB_YUYV)
174  ("YUV2BGR_YUYV", cv::COLOR_YUV2BGR_YUYV)
175  ("YUV2RGB_YUNV", cv::COLOR_YUV2RGB_YUNV)
176  ("YUV2BGR_YUNV", cv::COLOR_YUV2BGR_YUNV)
177  ("YUV2RGBA_YUY2", cv::COLOR_YUV2RGBA_YUY2)
178  ("YUV2BGRA_YUY2", cv::COLOR_YUV2BGRA_YUY2)
179  ("YUV2RGBA_YVYU", cv::COLOR_YUV2RGBA_YVYU)
180  ("YUV2BGRA_YVYU", cv::COLOR_YUV2BGRA_YVYU)
181  ("YUV2RGBA_YUYV", cv::COLOR_YUV2RGBA_YUYV)
182  ("YUV2BGRA_YUYV", cv::COLOR_YUV2BGRA_YUYV)
183  ("YUV2RGBA_YUNV", cv::COLOR_YUV2RGBA_YUNV)
184  ("YUV2BGRA_YUNV", cv::COLOR_YUV2BGRA_YUNV)
185  ("YUV2GRAY_UYVY", cv::COLOR_YUV2GRAY_UYVY)
186  ("YUV2GRAY_YUY2", cv::COLOR_YUV2GRAY_YUY2)
187  //("YUV2GRAY_VYUY", cv::COLOR_YUV2GRAY_VYUY)
188  ("YUV2GRAY_Y422", cv::COLOR_YUV2GRAY_Y422)
189  ("YUV2GRAY_UYNV", cv::COLOR_YUV2GRAY_UYNV)
190  ("YUV2GRAY_YVYU", cv::COLOR_YUV2GRAY_YVYU)
191  ("YUV2GRAY_YUYV", cv::COLOR_YUV2GRAY_YUYV)
192  ("YUV2GRAY_YUNV", cv::COLOR_YUV2GRAY_YUNV)
193  // alpha premultiplication
194  ("RGBA2mRGBA", cv::COLOR_RGBA2mRGBA)
195  ("mRGBA2RGBA", cv::COLOR_mRGBA2RGBA)
196  // RGB to YUV 4:2:0 family
197  ("RGB2YUV_I420", cv::COLOR_RGB2YUV_I420)
198  ("BGR2YUV_I420", cv::COLOR_BGR2YUV_I420)
199  ("RGB2YUV_IYUV", cv::COLOR_RGB2YUV_IYUV)
200  ("BGR2YUV_IYUV", cv::COLOR_BGR2YUV_IYUV)
201  ("RGBA2YUV_I420", cv::COLOR_RGBA2YUV_I420)
202  ("BGRA2YUV_I420", cv::COLOR_BGRA2YUV_I420)
203  ("RGBA2YUV_IYUV", cv::COLOR_RGBA2YUV_IYUV)
204  ("BGRA2YUV_IYUV", cv::COLOR_BGRA2YUV_IYUV)
205  ("RGB2YUV_YV12", cv::COLOR_RGB2YUV_YV12)
206  ("BGR2YUV_YV12", cv::COLOR_BGR2YUV_YV12)
207  ("RGBA2YUV_YV12", cv::COLOR_RGBA2YUV_YV12)
208  ("BGRA2YUV_YV12", cv::COLOR_BGRA2YUV_YV12)
209  // Demosaicing
210  ("BayerBG2BGR", cv::COLOR_BayerBG2BGR)
211  ("BayerGB2BGR", cv::COLOR_BayerGB2BGR)
212  ("BayerRG2BGR", cv::COLOR_BayerRG2BGR)
213  ("BayerGR2BGR", cv::COLOR_BayerGR2BGR)
214  ("BayerBG2RGB", cv::COLOR_BayerBG2RGB)
215  ("BayerGB2RGB", cv::COLOR_BayerGB2RGB)
216  ("BayerRG2RGB", cv::COLOR_BayerRG2RGB)
217  ("BayerGR2RGB", cv::COLOR_BayerGR2RGB)
218  ("BayerBG2GRAY", cv::COLOR_BayerBG2GRAY)
219  ("BayerGB2GRAY", cv::COLOR_BayerGB2GRAY)
220  ("BayerRG2GRAY", cv::COLOR_BayerRG2GRAY)
221  ("BayerGR2GRAY", cv::COLOR_BayerGR2GRAY)
222  // Demosaicing using Variable Number of Gradients
223  ("BayerBG2BGR_VNG", cv::COLOR_BayerBG2BGR_VNG)
224  ("BayerGB2BGR_VNG", cv::COLOR_BayerGB2BGR_VNG)
225  ("BayerRG2BGR_VNG", cv::COLOR_BayerRG2BGR_VNG)
226  ("BayerGR2BGR_VNG", cv::COLOR_BayerGR2BGR_VNG)
227  ("BayerBG2RGB_VNG", cv::COLOR_BayerBG2RGB_VNG)
228  ("BayerGB2RGB_VNG", cv::COLOR_BayerGB2RGB_VNG)
229  ("BayerRG2RGB_VNG", cv::COLOR_BayerRG2RGB_VNG)
230  ("BayerGR2RGB_VNG", cv::COLOR_BayerGR2RGB_VNG)
231  // Edge-Aware Demosaicing
232  ("BayerBG2BGR_EA", cv::COLOR_BayerBG2BGR_EA)
233  ("BayerGB2BGR_EA", cv::COLOR_BayerGB2BGR_EA)
234  ("BayerRG2BGR_EA", cv::COLOR_BayerRG2BGR_EA)
235  ("BayerGR2BGR_EA", cv::COLOR_BayerGR2BGR_EA)
236  ("BayerBG2RGB_EA", cv::COLOR_BayerBG2RGB_EA)
237  ("BayerGB2RGB_EA", cv::COLOR_BayerGB2RGB_EA)
238  ("BayerRG2RGB_EA", cv::COLOR_BayerRG2RGB_EA)
239  ("BayerGR2RGB_EA", cv::COLOR_BayerGR2RGB_EA)
240  // Demosaicing with alpha channel
241  ("BayerBG2BGRA", cv::COLOR_BayerBG2BGRA)
242  ("BayerGB2BGRA", cv::COLOR_BayerGB2BGRA)
243  ("BayerRG2BGRA", cv::COLOR_BayerRG2BGRA)
244  ("BayerGR2BGRA", cv::COLOR_BayerGR2BGRA)
245  ("BayerBG2RGBA", cv::COLOR_BayerBG2RGBA)
246  ("BayerGB2RGBA", cv::COLOR_BayerGB2RGBA)
247  ("BayerRG2RGBA", cv::COLOR_BayerRG2RGBA)
248  ("BayerGR2RGBA", cv::COLOR_BayerGR2RGBA);
249 }
250 
258 void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
259 {
260  // Check the number of arguments
261  nargchk(nrhs>=2 && (nrhs%2)==0 && nlhs<=1);
262 
263  // Argument vector
264  vector<MxArray> rhs(prhs, prhs+nrhs);
265 
266  // Option processing
267  int dstCn = 0;
268  for (int i=2; i<nrhs; i+=2) {
269  string key(rhs[i].toString());
270  if (key == "DstCn")
271  dstCn = rhs[i+1].toInt();
272  else
273  mexErrMsgIdAndTxt("mexopencv:error",
274  "Unrecognized option %s", key.c_str());
275  }
276 
277  // Process
278  Mat src(rhs[0].toMat(rhs[0].isUint8() ? CV_8U :
279  (rhs[0].isUint16() ? CV_16U : CV_32F))), dst;
280  int code = ColorConv[rhs[1].toString()];
281  cvtColor(src, dst, code, dstCn);
282  plhs[0] = MxArray(dst);
283 }
COLOR_YUV2RGBA_UYVY
COLOR_BayerRG2RGBA
COLOR_BGR2HSV
COLOR_BayerGR2RGB_VNG
COLOR_mRGBA2RGBA
COLOR_YUV2BGR_IYUV
COLOR_RGB2BGRA
COLOR_BayerRG2RGB_VNG
COLOR_YUV2RGBA_NV12
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
Definition: cvtColor.cpp:258
COLOR_YUV2BGRA_IYUV
COLOR_RGB2BGR
COLOR_BayerGB2BGR
COLOR_YUV2RGB_NV21
COLOR_BayerBG2BGR
COLOR_Lab2RGB
COLOR_YUV2RGB_YV12
COLOR_YUV2BGRA_I420
void cvtColor(InputArray src, OutputArray dst, int code, int dstCn=0)
COLOR_YUV2BGR_YUY2
COLOR_YUV2BGRA_NV12
COLOR_YUV2GRAY_YV12
COLOR_YUV2BGR_UYVY
COLOR_HLS2RGB_FULL
COLOR_RGB2YCrCb
COLOR_BGR2YCrCb
COLOR_BGRA2YUV_IYUV
COLOR_YUV2BGR_YVYU
COLOR_RGB2HSV
COLOR_YUV2GRAY_420
COLOR_RGBA2BGRA
COLOR_BGRA2GRAY
COLOR_YUV2BGRA_UYNV
COLOR_BayerBG2GRAY
COLOR_YUV2BGRA_YUYV
COLOR_BGR2RGB
COLOR_BayerGR2RGB
COLOR_BGR2XYZ
COLOR_GRAY2BGR555
COLOR_BayerBG2BGR_VNG
COLOR_YUV2RGBA_YUNV
COLOR_YUV2RGB_YVYU
COLOR_YUV2GRAY_YVYU
#define CV_8U
COLOR_BGR2HLS
COLOR_YUV2BGRA_YV12
COLOR_YUV420sp2BGR
COLOR_HSV2RGB_FULL
COLOR_BGR5652RGB
const ConstMap< string, int > ColorConv
Color conversion types for option processing.
Definition: cvtColor.cpp:15
COLOR_Lab2LBGR
COLOR_HSV2BGR
COLOR_LBGR2Lab
COLOR_YCrCb2BGR
STL namespace.
COLOR_Luv2LBGR
COLOR_Luv2RGB
COLOR_Lab2BGR
COLOR_BayerRG2GRAY
COLOR_HLS2BGR
COLOR_BayerGB2RGB_EA
COLOR_BGRA2YUV_I420
COLOR_YUV2BGR_UYNV
COLOR_BayerBG2RGB_EA
COLOR_BayerRG2BGR_EA
COLOR_YUV2GRAY_NV12
COLOR_RGB2HSV_FULL
COLOR_BayerGR2GRAY
COLOR_BGR2HSV_FULL
COLOR_BGR5552GRAY
COLOR_BGR2Luv
COLOR_BayerBG2RGB
COLOR_GRAY2BGR
COLOR_BGR5652BGRA
COLOR_YUV2GRAY_UYVY
COLOR_HSV2RGB
struct mxArray_tag mxArray
Forward declaration for mxArray.
Definition: matrix.h:259
COLOR_BGR2BGR555
COLOR_YUV420p2RGBA
COLOR_YUV2BGR_YUYV
COLOR_YUV2GRAY_IYUV
COLOR_RGB2YUV_I420
COLOR_BGR5652GRAY
COLOR_YUV2BGRA_Y422
COLOR_YUV2RGBA_IYUV
COLOR_BGRA2RGB
COLOR_RGB2YUV_IYUV
COLOR_RGBA2BGR565
COLOR_YUV2BGR_Y422
COLOR_YUV2GRAY_YUYV
COLOR_BGR5552BGRA
COLOR_RGB2XYZ
COLOR_HSV2BGR_FULL
COLOR_YUV420p2BGR
COLOR_BayerRG2RGB_EA
COLOR_YUV420p2RGB
COLOR_BayerRG2BGR_VNG
COLOR_YUV2BGR_YUNV
COLOR_BayerGR2BGR
COLOR_BGRA2RGBA
COLOR_GRAY2RGBA
COLOR_BayerGB2BGRA
#define CV_32F
COLOR_RGB2HLS_FULL
COLOR_YUV2RGB_YUNV
COLOR_BGRA2BGR565
COLOR_YUV2BGRA_YUNV
COLOR_BGR5652RGBA
COLOR_BGR2Lab
COLOR_YUV420sp2BGRA
COLOR_BayerRG2RGB
COLOR_BayerBG2RGBA
COLOR_RGBA2GRAY
COLOR_BayerGR2BGRA
COLOR_GRAY2BGRA
LIBMWMEX_API_EXTERN_C void mexErrMsgIdAndTxt(const char *identifier, const char *err_msg,...)
Issue formatted error message with corresponding error identifier and return to MATLAB prompt...
COLOR_Lab2LRGB
COLOR_RGB2Lab
COLOR_HLS2BGR_FULL
COLOR_Luv2LRGB
COLOR_YUV2RGB_YUY2
COLOR_YUV2GRAY_Y422
COLOR_BayerGR2BGR_VNG
COLOR_BayerBG2RGB_VNG
COLOR_RGB2Luv
COLOR_RGB2BGR565
COLOR_BayerGB2RGB_VNG
COLOR_RGB2GRAY
COLOR_BGR2BGR565
COLOR_BayerGB2GRAY
COLOR_YUV2GRAY_YUNV
COLOR_BayerGR2RGBA
COLOR_YUV2GRAY_YUY2
COLOR_XYZ2BGR
COLOR_RGBA2YUV_I420
COLOR_YUV2RGB_Y422
COLOR_RGB2YUV_YV12
COLOR_BGRA2BGR
COLOR_YUV2RGB_YUYV
mxArray object wrapper for data conversion and manipulation.
Definition: MxArray.hpp:123
void nargchk(bool cond)
Alias for input/output arguments number check.
Definition: mexopencv.hpp:181
COLOR_LRGB2Lab
COLOR_YUV420sp2RGB
COLOR_BayerBG2BGR_EA
COLOR_YUV2RGB_IYUV
COLOR_YUV2RGBA_YUYV
COLOR_RGBA2YUV_YV12
#define CV_16U
COLOR_RGBA2BGR
COLOR_RGB2YUV
COLOR_RGB2BGR555
COLOR_GRAY2RGB
COLOR_YUV2BGR
COLOR_YUV2BGR_NV12
COLOR_BayerGB2BGR_VNG
COLOR_YUV2BGR_YV12
COLOR_BGR2YUV_I420
COLOR_YUV2BGR_NV21
STL class.
COLOR_BGR5652BGR
COLOR_YUV2RGBA_YV12
COLOR_BGR2HLS_FULL
COLOR_YUV2RGBA_I420
COLOR_BayerRG2BGRA
COLOR_BGR5552BGR
COLOR_RGBA2RGB
COLOR_YUV2RGBA_YVYU
COLOR_YUV2BGR_I420
COLOR_RGB2RGBA
Global constant definitions.
COLOR_BayerGR2RGB_EA
COLOR_BGR2RGBA
COLOR_YUV2RGB_I420
COLOR_YUV2GRAY_UYNV
COLOR_YCrCb2RGB
COLOR_YUV2RGBA_Y422
T c_str(T... args)
COLOR_YUV420sp2GRAY
COLOR_YUV2RGB_UYNV
COLOR_GRAY2BGR565
COLOR_BGR2BGRA
COLOR_YUV2BGRA_NV21
COLOR_BayerBG2BGRA
COLOR_YUV420p2BGRA
COLOR_YUV420sp2RGBA
COLOR_XYZ2RGB
COLOR_BGR2YUV
COLOR_BGR2YUV_YV12
COLOR_BGR2YUV_IYUV
COLOR_BGR5552RGB
COLOR_RGBA2YUV_IYUV
COLOR_RGB2HLS
COLOR_YUV2BGRA_YUY2
COLOR_YUV2GRAY_I420
COLOR_YUV2RGB_NV12
COLOR_BayerGR2BGR_EA
COLOR_BayerGB2RGBA
COLOR_BayerGB2BGR_EA
COLOR_RGBA2mRGBA
COLOR_BGR5552RGBA
COLOR_HLS2RGB
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927
COLOR_YUV2RGBA_UYNV
COLOR_BGRA2YUV_YV12
COLOR_Luv2BGR
COLOR_LBGR2Luv
COLOR_YUV2RGB_UYVY
COLOR_YUV2RGBA_NV21
COLOR_LRGB2Luv
COLOR_BayerRG2BGR
COLOR_YUV2RGBA_YUY2
cv::Mat toMat() const
COLOR_BGR2GRAY
COLOR_YUV2RGB
COLOR_YUV2GRAY_NV21
COLOR_BGRA2BGR555
COLOR_YUV2BGRA_YVYU
COLOR_YUV2BGRA_UYVY
COLOR_YUV420p2GRAY
COLOR_BayerGB2RGB
COLOR_RGBA2BGR555