Home | History | Annotate | Download | only in test

Lines Matching defs:cn

103     int cn = cvtest::randInt(rng) % 3 + 1;
106 cn += cn == 2;
108 types[INPUT][0] = types[INPUT_OUTPUT][0] = types[REF_INPUT_OUTPUT][0] = CV_MAKETYPE(depth, cn);
127 int type = img.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
130 vector<float> buffer(img.cols*cn);
142 switch( cn )
179 for( j = 0; j < cols*cn; j++ )
183 for( j = 0; j < cols*cn; j++ )
187 for( j = 0; j < cols*cn; j++ )
193 cv::Mat src(1, cols*cn, CV_32F, &buffer[0]);
194 cv::Mat dst(1, cols*cn, depth, ptr);
348 int depth = src.depth(), cn = src.channels();
402 const uchar* sptr = sptr0 + iys*step + ixs*cn;
403 for( k = 0; k < cn; k++ )
406 float v01 = sptr[cn + k];
408 float v11 = sptr[step + cn + k];
419 const ushort* sptr = (const ushort*)sptr0 + iys*step + ixs*cn;
420 for( k = 0; k < cn; k++ )
423 float v01 = sptr[cn + k];
425 float v11 = sptr[step + cn + k];
436 const float* sptr = (const float*)sptr0 + iys*step + ixs*cn;
437 for( k = 0; k < cn; k++ )
440 float v01 = sptr[cn + k];
442 float v11 = sptr[step + cn + k];
1108 int cn = dst.channels();
1113 float* d = dst.ptr<float>(y) + x*cn;
1117 int dx = cn, dy = sstep;
1126 s = src.ptr<float>(iy) + ix*cn;
1127 for( int k = 0; k < cn; k++, s++ )
1168 int cn = cvtest::randInt(rng) % 2 ? 3 : 1;
1175 types[INPUT][0] = CV_MAKETYPE(src_depth,cn);
1176 types[INPUT_OUTPUT][0] = types[REF_INPUT_OUTPUT][0] = CV_MAKETYPE(dst_depth,cn);
1276 int cn = cvtest::randInt(rng) % 2 ? 3 : 1;
1282 types[INPUT][0] = CV_MAKETYPE(src_depth,cn);
1283 types[INPUT_OUTPUT][0] = types[REF_INPUT_OUTPUT][0] = CV_MAKETYPE(dst_depth,cn);
1571 int cn = src.channels();
1580 for (int x = 0; x < dst.cols * cn; x += cn)
1584 for (int c = 0; c < cn; ++c)
1586 WT sum = WT(sptr0[x1 + c]) + WT(sptr0[x1 + c + cn]);
1587 sum += WT(sptr1[x1 + c]) + WT(sptr1[x1 + c + cn]) + (WT)(one);
1607 int type = types[i], depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
1611 SCOPED_TRACE(cn);
1642 int cn = rng.uniform(1, 10);
1643 Mat src(height, width, CV_8UC(cn)), dst;