Lines Matching defs:cn
1463 int cn = CV_MAT_CN( type );
1467 if( (unsigned)(cn - 1) >= 4 )
1473 while( cn-- )
1475 int t = cvRound( scalar->val[cn] );
1476 ((uchar*)data)[cn] = cv::saturate_cast<uchar>(t);
1480 while( cn-- )
1482 int t = cvRound( scalar->val[cn] );
1483 ((char*)data)[cn] = cv::saturate_cast<schar>(t);
1487 while( cn-- )
1489 int t = cvRound( scalar->val[cn] );
1490 ((ushort*)data)[cn] = cv::saturate_cast<ushort>(t);
1494 while( cn-- )
1496 int t = cvRound( scalar->val[cn] );
1497 ((short*)data)[cn] = cv::saturate_cast<short>(t);
1501 while( cn-- )
1502 ((int*)data)[cn] = cvRound( scalar->val[cn] );
1505 while( cn-- )
1506 ((float*)data)[cn] = (float)(scalar->val[cn]);
1509 while( cn-- )
1510 ((double*)data)[cn] = (double)(scalar->val[cn]);
1536 int cn = CV_MAT_CN( flags );
1540 if( (unsigned)(cn - 1) >= 4 )
1548 while( cn-- )
1549 scalar->val[cn] = CV_8TO32F(((uchar*)data)[cn]);
1552 while( cn-- )
1553 scalar->val[cn] = CV_8TO32F(((char*)data)[cn]);
1556 while( cn-- )
1557 scalar->val[cn] = ((ushort*)data)[cn];
1560 while( cn-- )
1561 scalar->val[cn] = ((short*)data)[cn];
1564 while( cn-- )
1565 scalar->val[cn] = ((int*)data)[cn];
1568 while( cn-- )
1569 scalar->val[cn] = ((float*)data)[cn];
1572 while( cn-- )
1573 scalar->val[cn] = ((double*)data)[cn];
2542 int total_width, new_rows, cn;
2556 cn = CV_MAT_CN( mat->type );
2557 total_width = mat->cols * cn;
2560 new_cn = cn;