-
Notifications
You must be signed in to change notification settings - Fork 0
/
dinfo.cc
executable file
·43 lines (39 loc) · 1.4 KB
/
dinfo.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
$Date: 1999/10/15 12:40:27 $
$Revision: 1.1.1.1 $
$Author: kise $
dinfo.c
*/
#include <stdio.h>
#include "extern.h"
namespace voronoi{
void dparam()
{
fprintf(stderr,"Parameters : \n");
fprintf(stderr,
"sampling rate\t%d\nnoise max\t%d\n",sample_rate,noise_max);
fprintf(stderr,"freq_rate\t%f\n",freq_rate);
fprintf(stderr,"Ta\t\t%d\n",Ta);
fprintf(stderr,"smwind\t\t%d\n",smwind);
}
void dnumber(int imax, int jmax)
{
fprintf(stderr,"---------------------------------------------------------\n");
fprintf(stderr,"image size \t\t\t\t\t%d x %d\n",imax,jmax);
fprintf(stderr,"black pixels\t\t\t\t\t%d\n",BPnbr);
fprintf(stderr,"connected components\t\t\t\t%d\n",LABELnbr);
fprintf(stderr,"sample points\t\t\t\t\t%d\n",sample_pix);
fprintf(stderr,"point Voronoi line segments\t\t\t%d\n",point_edge);
fprintf(stderr,"area Voronoi line segments (before erasing)\t%d\n",LINEnbr);
fprintf(stderr,"area Voronoi line segments (after erasing)\t%d\n",edge_nbr);
fprintf(stderr,"---------------------------------------------------------\n");
}
#ifdef TIME
void dtime()
{
fprintf(stderr,"\timg_to_site\tvoronoi\t\terase\t\toutput\n");
fprintf(stderr,"Time\t%.3f\t\t%.3f\t\t%.3f\t\t%.3f\n",
b_s_time,v_time,e_time,o_time);
}
#endif
}