Lines Matching refs:col
23 virtual YUV read(const Mat& yuv, int row, int col) = 0;
37 virtual RGB read(const Mat& rgb, int row, int col) = 0;
48 virtual void write(Mat& rgb, int row, int col, const RGB& val) = 0;
59 virtual void write(Mat& gray, int row, int col, const uchar& val) in write() argument
61 gray.at<uchar>(row, col) = val; in write()
74 virtual void write(Mat& yuv, int row, int col, const YUV& val) = 0;
86 void write(Mat& rgb, int row, int col, const RGB& val) in write() argument
88 rgb.at<Vec3b>(row, col) = val; in write()
96 void write(Mat& rgb, int row, int col, const RGB& val) in write() argument
99 rgb.at<Vec3b>(row, col) = tmp; in write()
107 void write(Mat& rgb, int row, int col, const RGB& val) in write() argument
110 rgb.at<Vec4b>(row, col) = tmp; in write()
118 void write(Mat& rgb, int row, int col, const RGB& val) in write() argument
121 rgb.at<Vec4b>(row, col) = tmp; in write()
135 void write(Mat& yuv, int row, int col, const YUV& val) in write() argument
139 yuv.ptr<uchar>(row)[col] = val[0]; in write()
140 if( row % 2 == 0 && col % 2 == 0 ) in write()
142 yuv.ptr<uchar>(h + row/4)[col/2 + ((row/2) % 2) * (yuv.cols/2)] = val[2]; in write()
143 … yuv.ptr<uchar>(h + (row/2 + h/2)/2)[col/2 + ((row/2 + h/2) % 2) * (yuv.cols/2)] = val[1]; in write()
150 void write(Mat& yuv, int row, int col, const YUV& val) in write() argument
154 yuv.ptr<uchar>(row)[col] = val[0]; in write()
155 if( row % 2 == 0 && col % 2 == 0 ) in write()
157 yuv.ptr<uchar>(h + row/4)[col/2 + ((row/2) % 2) * (yuv.cols/2)] = val[1]; in write()
158 … yuv.ptr<uchar>(h + (row/2 + h/2)/2)[col/2 + ((row/2 + h/2) % 2) * (yuv.cols/2)] = val[2]; in write()
178 YUV read(const Mat& yuv, int row, int col) in read() argument
180 uchar y = yuv.ptr<uchar>(row)[col]; in read()
181 uchar u = yuv.ptr<uchar>(yuv.rows * 2 / 3 + row/2)[(col/2)*2 + 1]; in read()
182 uchar v = yuv.ptr<uchar>(yuv.rows * 2 / 3 + row/2)[(col/2)*2]; in read()
191 YUV read(const Mat& yuv, int row, int col) in read()
193 uchar y = yuv.ptr<uchar>(row)[col]; in read()
194 uchar u = yuv.ptr<uchar>(yuv.rows * 2 / 3 + row/2)[(col/2)*2]; in read()
195 uchar v = yuv.ptr<uchar>(yuv.rows * 2 / 3 + row/2)[(col/2)*2 + 1]; in read()
203 YUV read(const Mat& yuv, int row, int col) in read() argument
206 uchar y = yuv.ptr<uchar>(row)[col]; in read()
207 uchar u = yuv.ptr<uchar>(h + (row/2 + h/2)/2)[col/2 + ((row/2 + h/2) % 2) * (yuv.cols/2)]; in read()
208 uchar v = yuv.ptr<uchar>(h + row/4)[col/2 + ((row/2) % 2) * (yuv.cols/2)]; in read()
216 YUV read(const Mat& yuv, int row, int col) in read() argument
219 uchar y = yuv.ptr<uchar>(row)[col]; in read()
220 uchar u = yuv.ptr<uchar>(h + row/4)[col/2 + ((row/2) % 2) * (yuv.cols/2)]; in read()
221 uchar v = yuv.ptr<uchar>(h + (row/2 + h/2)/2)[col/2 + ((row/2 + h/2) % 2) * (yuv.cols/2)]; in read()
229 YUV read(const Mat& yuv, int row, int col) in read() argument
231 uchar y = yuv.ptr<Vec2b>(row)[col][1]; in read()
232 uchar u = yuv.ptr<Vec2b>(row)[(col/2)*2][0]; in read()
233 uchar v = yuv.ptr<Vec2b>(row)[(col/2)*2 + 1][0]; in read()
241 YUV read(const Mat& yuv, int row, int col) in read() argument
243 uchar y = yuv.ptr<Vec2b>(row)[col][0]; in read()
244 uchar u = yuv.ptr<Vec2b>(row)[(col/2)*2][1]; in read()
245 uchar v = yuv.ptr<Vec2b>(row)[(col/2)*2 + 1][1]; in read()
253 YUV read(const Mat& yuv, int row, int col) in read() argument
255 uchar y = yuv.ptr<Vec2b>(row)[col][0]; in read()
256 uchar u = yuv.ptr<Vec2b>(row)[(col/2)*2 + 1][1]; in read()
257 uchar v = yuv.ptr<Vec2b>(row)[(col/2)*2][1]; in read()
265 YUV read(const Mat& yuv, int row, int col) in read() argument
267 return yuv.at<YUV>(row, col); in read()
278 RGB read(const Mat& rgb, int row, int col) in read() argument
280 return rgb.at<RGB>(row, col); in read()
288 RGB read(const Mat& rgb, int row, int col) in read() argument
290 RGB tmp = rgb.at<RGB>(row, col); in read()
299 RGB read(const Mat& rgb, int row, int col) in read() argument
301 Vec4b rgba = rgb.at<Vec4b>(row, col); in read()
310 RGB read(const Mat& rgb, int row, int col) in read() argument
312 Vec4b rgba = rgb.at<Vec4b>(row, col); in read()
525 for(int col = 0; col < rgb.cols; ++col) in referenceYUV2RGB() local
526 rgbWriter->write(rgb, row, col, cvt.convert(yuvReader->read(yuv, row, col))); in referenceYUV2RGB()
535 for(int col = 0; col < rgb.cols; ++col) in referenceYUV2GRAY() local
536 grayWriter->write(rgb, row, col, cvt.convert(yuvReader->read(yuv, row, col))); in referenceYUV2GRAY()
545 for(int col = 0; col < rgb.cols; ++col) in referenceRGB2YUV() local
546 yuvWriter->write(yuv, row, col, cvt.convert(rgbReader->read(rgb, row, col))); in referenceRGB2YUV()