Lines Matching full:rows
118 if( (int64)arr->step*arr->rows > INT_MAX )
124 cvCreateMatHeader( int rows, int cols, int type )
135 if( rows <= 0 || cols <= 0 )
144 arr->step = rows == 1 ? 0 : cvAlign(min_step, CV_DEFAULT_MAT_ROW_ALIGN);
147 arr->rows = rows;
166 cvInitMatHeader( CvMat* arr, int rows, int cols,
181 if( rows <= 0 || cols <= 0 )
182 CV_ERROR( CV_StsBadSize, "Non-positive cols or rows" );
186 arr->rows = rows;
192 mask = (arr->rows <= 1) - 1;
258 CV_CALL( dst = cvCreateMatHeader( src->rows, src->cols, src->type ));
456 matnd->dim[0].size = mat->rows;
970 total_size = step*mat->rows + sizeof(int) + CV_MALLOC_ALIGN;
1062 min_step = mat->cols*pix_size & ((mat->rows <= 1) - 1);
1068 mat->step = step & ((mat->rows <= 1) - 1);
1303 sizes[0] = mat->rows;
1365 size = mat->rows;
1434 size.height = mat->rows;
1484 rect.y + rect.height > mat->rows )
1501 submat->rows = rect.height;
1532 if( (unsigned)start_row >= (unsigned)mat->rows ||
1533 (unsigned)end_row > (unsigned)mat->rows || delta_row <= 0 )
1547 submat->rows = end_row - start_row;
1548 submat->step = mat->step & (submat->rows > 1 ? -1 : 0);
1552 submat->rows = (end_row - start_row + delta_row - 1)/delta_row;
1557 submat->step &= submat->rows > 1 ? -1 : 0;
1605 submat->rows = mat->rows;
1607 submat->step = mat->step & (submat->rows > 1 ? -1 : 0);
1658 len = CV_IMIN( len, mat->rows );
1663 len = mat->rows + diag;
1672 submat->rows = len;
1674 submat->step = (mat->step + pix_size) & (submat->rows > 1 ? -1 : 0);
1916 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
1917 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2022 if( (unsigned)y >= (unsigned)(mat->rows) ||
2216 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2217 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2252 if( (unsigned)y >= (unsigned)(mat->rows) ||
2352 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2353 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2394 if( (unsigned)y >= (unsigned)(mat->rows) ||
2510 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2511 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2542 if( (unsigned)y >= (unsigned)(mat->rows) ||
2626 if( (unsigned)idx >= (unsigned)(mat->rows + mat->cols - 1) &&
2627 (unsigned)idx >= (unsigned)(mat->rows*mat->cols))
2661 if( (unsigned)y >= (unsigned)(mat->rows) ||
2871 mat->rows = size1;
2959 new_rows = total_width*mat->rows/new_cn;
2962 new_rows = mat->rows;
2964 new_rows = mat->rows * total_width / new_cn;
2967 if( new_rows != mat->rows )
2969 int total_size = total_width * mat->rows;
2973 "The matrix is not continuous so the number of rows can not be changed" );
2979 "is not divisible by the new number of rows" );
2982 header->rows = new_rows;
3137 new_rows = mat->rows * total_width / new_cn;
3139 if( new_rows == 0 || new_rows == mat->rows )
3141 header->rows = mat->rows;
3146 int total_size = total_width * mat->rows;
3149 "The matrix is not continuous, thus its number of rows can not be changed" );
3152 CV_ERROR( CV_StsOutOfRange, "Bad new number of rows" );
3158 "is not divisible by the new number of rows" );
3160 header->rows = new_rows;
3209 cvInitImageHeader( img, cvSize(mat->cols, mat->rows),