Lines Matching refs:cols
124 cvCreateMatHeader( int rows, int cols, int type )
135 if( rows <= 0 || cols <= 0 )
138 min_step = CV_ELEM_SIZE(type)*cols;
148 arr->cols = cols;
166 cvInitMatHeader( CvMat* arr, int rows, int cols,
181 if( rows <= 0 || cols <= 0 )
182 CV_ERROR( CV_StsBadSize, "Non-positive cols or rows" );
187 arr->cols = cols;
194 min_step = arr->cols*pix_size & mask;
258 CV_CALL( dst = cvCreateMatHeader( src->rows, src->cols, src->type ));
458 matnd->dim[1].size = mat->cols;
968 step = CV_ELEM_SIZE(mat->type)*mat->cols;
1062 min_step = mat->cols*pix_size & ((mat->rows <= 1) - 1);
1304 sizes[1] = mat->cols;
1368 size = mat->cols;
1433 size.width = mat->cols;
1483 if( rect.x + rect.width > mat->cols ||
1499 submat->type = (mat->type & (rect.width < mat->cols ? ~CV_MAT_CONT_FLAG : -1)) |
1502 submat->cols = rect.width;
1556 submat->cols = mat->cols;
1583 int cols;
1591 cols = mat->cols;
1592 if( (unsigned)start_col >= (unsigned)cols ||
1593 (unsigned)end_col > (unsigned)cols )
1606 submat->cols = end_col - start_col;
1609 submat->type = mat->type & (submat->step && submat->cols < cols ? ~CV_MAT_CONT_FLAG : -1);
1653 len = mat->cols - diag;
1668 len = CV_IMIN( len, mat->cols );
1673 submat->cols = 1;
1916 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
1917 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
1927 if( mat->cols == 1 )
1930 row = idx/mat->cols, col = idx - row*mat->cols;
2023 (unsigned)x >= (unsigned)(mat->cols) )
2216 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2217 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2253 (unsigned)x >= (unsigned)(mat->cols) )
2352 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2353 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2395 (unsigned)x >= (unsigned)(mat->cols) )
2510 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2511 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2543 (unsigned)x >= (unsigned)(mat->cols) )
2626 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2627 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2662 (unsigned)x >= (unsigned)(mat->cols) )
2872 mat->cols = size2;
2951 total_width = mat->cols * cn;
2983 header->cols = total_width / new_cn;
2985 if( header->cols * new_cn != total_width ||
2986 (new_sizes && header->cols != new_sizes[1]) )
2991 header->step = header->cols * CV_ELEM_SIZE(mat->type);
3134 total_width = mat->cols * CV_MAT_CN( mat->type );
3170 header->cols = new_width;
3209 cvInitImageHeader( img, cvSize(mat->cols, mat->rows),