Home | History | Annotate | Download | only in cpp

Lines Matching full:planes

14     "It shows reading of images, converting to planes and merging back, color conversion\n"
59 vector<Mat> planes; // Vector is template vector class, similar to STL's vector. It can store matrices too.
60 split(img_yuv, planes); // split the image into separate color planes
64 MatIterator_<uchar> it = planes[0].begin<uchar>(), it_end = planes[0].end<uchar>();
75 uchar* Uptr = planes[1].ptr<uchar>(y);
79 uchar& Vxy = planes[2].at<uchar>(y, x);
95 IplImage cv_planes_0 = planes[0], cv_noise = noise;
99 addWeighted(planes[0], contrast_gain, noise, 1, -128 + brightness_gain, planes[0]);
102 // Mat::convertTo() replaces cvConvertScale. One must explicitly specify the output matrix type (we keep it intact - planes[1].type())
103 planes[1].convertTo(planes[1], planes[1].type(), color_scale, 128*(1-color_scale));
106 planes[2] = Mat_<uchar>(planes[2]*color_scale + 128*(1-color_scale));
109 planes[0] = planes[0].mul(planes[0], 1./255);
113 merge(planes, img_yuv);