Lines Matching refs:centers
267 CvMat* centers = _centers;
286 CV_CALL(centers = cvCreateMat (num_of_clusters, dim, CV_32FC1));
295 CV_CALL(centers = cvCreateMat (num_of_clusters, dim, CV_64FC1));
308 CV_CALL(cvGetCol (centers, ¢ers_comp, i));
314 if( (cvGetErrStatus () < 0) || (centers != _centers) )
315 cvReleaseMat (¢ers);
317 return _centers ? _centers : centers;
1414 const CvMat* centers, CvMat* dst_centers,
1431 CV_ERROR( CV_StsBadArg, "Array of cluster centers is not a valid matrix" );
1469 if( dst_centers && (!centers || centers->data.ptr != dst_centers->data.ptr) )
1473 if( !centers )
1474 CV_ERROR( CV_StsNullPtr, "NULL centers" );
1476 if( centers->rows != dst_centers->rows )
1477 CV_ERROR( CV_StsUnmatchedSizes, "Invalid number of rows in matrix of output centers" );
1481 "Number of columns in matrix of output centers is "
1484 CV_ASSERT( centers->cols == dims_selected );
1486 for( i = 0; i < centers->rows; i++ )
1487 CV_CALL( icvConvertDataToSparse( centers->data.ptr + i*centers->step, 0, centers->type,