A = SparseMatrix_import_dot(g, dim, NULL, &x, NULL, NULL, FORMAT_COORD, NULL);
if (!x){
- fprintf(stderr,"The gv file contains no or not proper 2D coordinates\n");
+ fprintf(stderr,"The gv file contains no or improper 2D coordinates\n");
return NULL;
}
}
}
- fprintf(stderr,"cos = %f, nz2 = %d\n", cos_critical, nz2);
+ if (Verbose)
+ fprintf(stderr,"cos = %f, nz2 = %d\n", cos_critical, nz2);
/* now find edge collision */
nz = 0;
B = SparseMatrix_new(nz2, nz2, 1, MATRIX_TYPE_REAL, FORMAT_COORD);
}
#endif
- fprintf(stderr,"The edge conflict graph has %d nodes and %d edges, final color_diff=%f color_diff_sum = %f\n",
+ if (Verbose)
+ fprintf(stderr,"The edge conflict graph has %d nodes and %d edges, final color_diff=%f color_diff_sum = %f\n",
C->m, C->nz, color_diff, color_diff_sum);
attach_edge_colors(g, cdim, colors);
*n = 0;
- fprintf(stderr,"LAB color lightness range = %d,%d\n", l1, l2);
+ if (Verbose)
+ fprintf(stderr,"LAB color lightness range = %d,%d\n", l1, l2);
fp = fopen(gamut_file, "r");
if (!fp) return NULL;
}
-
- fprintf(stderr,"LAB color lightness range = %d,%d\n", l1, l2);
+ if (Verbose)
+ fprintf(stderr,"LAB color lightness range = %d,%d\n", l1, l2);
m = sizeof(lab_gamut_data)/sizeof(lab_gamut_data[0]);
- fprintf(stderr,"size of lab gamut = %d\n", m);
+ if (Verbose)
+ fprintf(stderr,"size of lab gamut = %d\n", m);
x = malloc(sizeof(double)*3*m);
xx = x;
for (i = 0; i < nc - 1; i++){
dists[i+1] += dists[i];
}
- fprintf(stderr,"sum = %f\n", dists[nc-1]);
+ if (Verbose)
+ fprintf(stderr,"sum = %f\n", dists[nc-1]);
if (!(*colors0)){
*colors0 = malloc(sizeof(double)*maxpoints*cdim);
cdim = *cdim0 = 3;
if (strcmp(color_scheme, "lab") == 0){
- fprintf(stderr,"lab\n");
+ if (Verbose) fprintf(stderr,"lab\n");
scheme = COLOR_LAB;
qt = lab_gamut_quadtree("lab_gamut", lightness, max_qtree_level);
if (!qt){
return;
}
} else if (strcmp(color_scheme, "rgb") == 0){
- fprintf(stderr,"rgb\n");
+ if (Verbose) fprintf(stderr,"rgb\n");
scheme = COLOR_RGB;
} else if (strcmp(color_scheme, "gray") == 0){
scheme = COLOR_GRAY;