Home | History | Annotate | Download | only in src

Lines Matching defs:cn

99                       int aperture_size, bool L2gradient, int cn, const Size & size)
142 format("-D WITH_SOBEL -D cn=%d -D TYPE=%s -D convert_floatN=%s -D floatN=%s -D GRP_SIZEX=%d -D GRP_SIZEY=%d%s",
143 cn, ocl::memopTypeToStr(_src.depth()),
144 ocl::convertTypeStr(_src.depth(), CV_32F, cn, cvt),
145 ocl::typeToStr(CV_MAKE_TYPE(CV_32F, cn)),
176 format("-D WITHOUT_SOBEL -D cn=%d -D GRP_SIZEX=%d -D GRP_SIZEY=%d%s",
177 cn, lSizeX, lSizeY, L2gradient ? " -D L2GRAD" : ""));
257 const int type = src.type(), cn = CV_MAT_CN(type);
270 Mat tempdx(boundaries.end - boundaries.start + 2, src.cols, CV_16SC(cn));
271 Mat tempdy(boundaries.end - boundaries.start + 2, src.cols, CV_16SC(cn));
273 memset(tempdx.ptr<short>(0), 0, cn * src.cols*sizeof(short));
274 memset(tempdy.ptr<short>(0), 0, cn * src.cols*sizeof(short));
275 memset(tempdx.ptr<short>(tempdx.rows - 1), 0, cn * src.cols*sizeof(short));
276 memset(tempdy.ptr<short>(tempdy.rows - 1), 0, cn * src.cols*sizeof(short));
286 Mat tempdx(boundaries.end - boundaries.start + 2 + ksize2, src.cols, CV_16SC(cn));
287 Mat tempdy(boundaries.end - boundaries.start + 2 + ksize2, src.cols, CV_16SC(cn));
289 memset(tempdx.ptr<short>(0), 0, cn * src.cols*sizeof(short));
290 memset(tempdy.ptr<short>(0), 0, cn * src.cols*sizeof(short));
302 Mat tempdx(boundaries.end - boundaries.start + 2 + ksize2, src.cols, CV_16SC(cn));
303 Mat tempdy(boundaries.end - boundaries.start + 2 + ksize2, src.cols, CV_16SC(cn));
305 memset(tempdx.ptr<short>(tempdx.rows - 1), 0, cn * src.cols*sizeof(short));
306 memset(tempdy.ptr<short>(tempdy.rows - 1), 0, cn * src.cols*sizeof(short));
318 Mat tempdx(boundaries.end - boundaries.start + 2 + 2*ksize2, src.cols, CV_16SC(cn));
319 Mat tempdy(boundaries.end - boundaries.start + 2 + 2*ksize2, src.cols, CV_16SC(cn));
335 AutoBuffer<uchar> buffer(cn * mapstep * 3 * sizeof(int));
339 mag_buf[1] = mag_buf[0] + mapstep*cn;
340 mag_buf[2] = mag_buf[1] + mapstep*cn;
356 int j = 0, width = src.cols * cn;
390 int j = 0, width = src.cols * cn;
426 if (cn > 1)
428 for(int j = 0, jn = 0; j < src.cols; ++j, jn += cn)
431 for(int k = 1; k < cn; ++k)
584 const int type = _src.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
603 CV_OCL_RUN(_dst.isUMat() && (cn == 1 || cn == 3),
604 ocl_Canny(_src, _dst, (float)low_thresh, (float)high_thresh, aperture_size, L2gradient, cn, size))
616 if( aperture_size == 3 && !L2gradient && 1 == cn )
691 Mat dx(src.rows, src.cols, CV_16SC(cn));
692 Mat dy(src.rows, src.cols, CV_16SC(cn));
709 AutoBuffer<uchar> buffer((src.cols+2)*(src.rows+2) + cn * mapstep * 3 * sizeof(int));
713 mag_buf[1] = mag_buf[0] + mapstep*cn;
714 mag_buf[2] = mag_buf[1] + mapstep*cn;
715 memset(mag_buf[0], 0, /* cn* */mapstep*sizeof(int));
717 uchar* map = (uchar*)(mag_buf[2] + mapstep*cn);
760 int j = 0, width = src.cols * cn;
794 int j = 0, width = src.cols * cn;
830 if (cn > 1)
832 for(int j = 0, jn = 0; j < src.cols; ++j, jn += cn)
835 for(int k = 1; k < cn; ++k)
845 memset(_norm-1, 0, /* cn* */mapstep*sizeof(int));