Lines Matching refs:cat_map
49 var_idx = var_type = cat_count = cat_ofs = cat_map =
63 var_idx = var_type = cat_count = cat_ofs = cat_map =
157 cvNorm( data->cat_map, cat_map, CV_C ) < FLT_EPSILON) )
267 CV_CALL( cat_map = cvCreateMat( 1, cat_count->cols*10 + 128, CV_32SC1 ));
392 // resize cat_map, if need
393 if( cat_map->cols < total_c_count + c_count )
395 tmp_map = cat_map;
396 CV_CALL( cat_map = cvCreateMat( 1,
397 MAX(cat_map->cols*3/2,total_c_count+c_count), CV_32SC1 ));
399 cat_map->data.i[i] = tmp_map->data.i[i];
403 c_map = cat_map->data.i + total_c_count;
502 cat_map->cols = MAX( total_c_count, 1 );
779 cat_map->data.i[cat_ofs->data.i[cat_var_count]+src[idx]];
922 cvReleaseMat( &cat_map );
1057 cvWrite( fs, "cat_map", cat_map );
1168 CV_CALL( cat_map = (CvMat*)cvReadByName( fs, node, "cat_map" ));
1170 if( !CV_IS_MAT(cat_count) || !CV_IS_MAT(cat_map) ||
1174 cat_map->cols != 1 && cat_map->rows != 1 ||
1175 CV_MAT_TYPE(cat_map->type) != CV_32SC1 )
1177 "Both cat_count and cat_map must exist and be valid 1d integer vectors of an appropriate size" );
1194 if( cat_map->cols + cat_map->rows - 1 != total_c_count )
1196 "cat_map vector length is not equal to the total number of categories in all categorical vars" );
2330 node->value = data->cat_map->data.i[
2934 cmap = data->cat_map ? data->cat_map->data.i : 0;