Lines Matching defs:cn
102 int operator()(const uchar* src, uchar* dst, int width, int cn) const
107 cn *= ESZ;
108 int i, k, _ksize = ksize*cn;
109 width = (width & -4)*cn;
115 for( k = cn; k < _ksize; k += cn )
126 for( k = cn; k < _ksize; k += cn )
144 int operator()(const uchar* src, uchar* dst, int width, int cn) const
149 int i, k, _ksize = ksize*cn;
150 width = (width & -4)*cn;
156 for( k = cn; k < _ksize; k += cn )
644 void operator()(const uchar* src, uchar* dst, int width, int cn)
646 int i, j, k, _ksize = ksize*cn;
651 if( _ksize == cn )
653 for( i = 0; i < width*cn; i++ )
658 int i0 = vecOp(src, dst, width, cn);
659 width *= cn;
661 for( k = 0; k < cn; k++, S++, D++ )
663 for( i = i0; i <= width - cn*2; i += cn*2 )
666 T m = s[cn];
667 for( j = cn*2; j < _ksize; j += cn )
670 D[i+cn] = op(m, s[j]);
673 for( ; i < width; i += cn )
677 for( j = cn; j < _ksize; j += cn )
799 void operator()(const uchar** src, uchar* dst, int dststep, int count, int width, int cn)
806 width *= cn;
812 kp[k] = (const T*)src[pt[k].y] + pt[k].x*cn;
1268 int type = src.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
1270 if( !( depth == CV_8U || depth == CV_32F ) || !(cn == 1 || cn == 3 || cn == 4) ||
1346 int type = _src.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type), esz = CV_ELEM_SIZE(type);
1349 if (cn > 4 || (!doubleSupport && depth == CV_64F) ||
1369 wtype = CV_MAKETYPE(wdepth, cn);
1390 int pxLoadNumPixels = cn != 1 || size.width % 4 ? 1 : 4;
1391 int pxLoadVecSize = cn * pxLoadNumPixels;
1396 if (cn <= 2 && ksize.width <= 4 && ksize.height <= 4)
1401 else if (cn < 4 || (ksize.width <= 4 && ksize.height <= 4))
1431 String opts = format("-D cn=%d "
1438 cn, anchor.x, anchor.y, ksize.width, ksize.height,
1446 haveExtraMat ? ocl::convertTypeStr(depth, wdepth, cn, cvt[0]) : "noconvert",//to prevent overflow - src to WT
1447 haveExtraMat ? ocl::convertTypeStr(wdepth, depth, cn, cvt[1]) : "noconvert",//to prevent overflow - WT to dst
1504 cn = CV_MAT_CN(type), esz = CV_ELEM_SIZE(type);
1534 (ksize.width == 5 && ksize.height == 5 && cn == 1)) &&
1537 && cn == 1
1583 int wdepth = std::max(depth, CV_32F), scalarcn = cn == 3 ? 4 : cn;
1593 " -D PROCESS_ELEMS=%s -D T=%s -D DEPTH_%d -D cn=%d -D T1=%s"
1597 ocl::typeToStr(type), depth, cn, ocl::typeToStr(depth),
1598 ocl::convertTypeStr(depth, wdepth, cn, cvt[0]),
1599 ocl::convertTypeStr(wdepth, depth, cn, cvt[1]),