Skip to content
Snippets Groups Projects
Commit 5a85721a authored by even's avatar even
Browse files

Article: remarks PN updated

parent 9eea8387
No related branches found
No related tags found
No related merge requests found
Showing
with 428 additions and 1 deletion
......@@ -12,7 +12,8 @@ $M_{new}/M_{old}$ (\%) & & & & \\
\hspace{0.4cm} on image of \RefFig{fig:auto}
& \multicolumn{1}{l|}{87.60} & \multicolumn{1}{l|}{115.03}
& \multicolumn{1}{l|}{86.18} & \multicolumn{1}{l|}{87.85} \\
\hspace{0.4cm} on the set of test images & & & & \\
\hspace{0.4cm} on the set of test images
& 85.88 $\pm$ 2.60 & 106.64 $\pm$ 5.63 & 92.63 $\pm$ 4.37 & 87.03 $\pm$ 4.27 \\
\hspace{0.4cm} on CannyLines images
& 86.02 $\pm$ 2.44 & 110.15 $\pm$ 6.51 & 89.23 $\pm$ 5.11 & 84.70 $\pm$ 2.98 \\
\hline
......
File added
import java.io.*;
public class PerfCompare
{
private static String[] names = {
"perf_iut_amphi1.txt",
"perf_iut_amphi2.txt",
"perf_iut_corridor1.txt",
"perf_iut_corridor2.txt",
"perf_iut_entrance.txt",
"perf_iut_labo1.txt",
"perf_iut_labo2.txt",
"perf_iut_library1.txt",
"perf_iut_mul1.txt",
"perf_iut_mul2.txt",
"perf_iut_office1.txt",
"perf_iut_office2.txt",
"perf_iut_office4.txt",
"perf_iut_outdoor1.txt",
"perf_iut_outdoor2.txt",
"perf_iut_outdoor3.txt",
"perf_iut_scc1.txt",
"perf_iut_scc2.txt",
"perf_iut_scc3.txt",
"perf_loria_indoor1.txt",
"perf_loria_indoor2.txt",
"perf_loria_indoor3.txt",
"perf_loria_office1.txt",
"perf_loria_outdoor1.txt",
"perf_vosges_castle1.txt",
"perf_vosges_castle2.txt",
"perf_vosges_corridor1.txt",
"perf_vosges_detail1.txt",
"perf_vosges_detail2.txt",
"perf_vosges_detail3.txt"};
private double timeRatio = 0.;
private double countRatio = 0.;
private double longRatio = 0.;
private double lengthRatio = 0.;
private double widthRatio = 0.;
public static void main (String[] args) throws IOException
{
PerfCompare[] perf = new PerfCompare[names.length];
double meanTime = 0.;
double meanCount = 0.;
double meanLong = 0.;
double meanLength = 0.;
double meanWidth = 0.;
for (int i = 0; i < names.length; i++)
{
perf[i] = new PerfCompare (names[i]);
meanTime += perf[i].timeRatio;
meanCount += perf[i].countRatio;
meanLong += perf[i].longRatio;
meanLength += perf[i].lengthRatio;
meanWidth += perf[i].widthRatio;
}
meanTime /= names.length;
meanCount /= names.length;
meanLong /= names.length;
meanLength /= names.length;
meanWidth /= names.length;
double sdTime = 0.;
double sdCount = 0.;
double sdLong = 0.;
double sdLength = 0.;
double sdWidth = 0.;
for (int i = 0; i < names.length; i++)
{
sdTime += (perf[i].timeRatio - meanTime)
* (perf[i].timeRatio - meanTime);
sdCount += (perf[i].countRatio - meanCount)
* (perf[i].countRatio - meanCount);
sdLong += (perf[i].longRatio - meanLong)
* (perf[i].longRatio - meanLong);
sdLength += (perf[i].lengthRatio - meanLength)
* (perf[i].lengthRatio - meanLength);
sdWidth += (perf[i].widthRatio - meanWidth)
* (perf[i].widthRatio - meanWidth);
}
sdTime = Math.sqrt (sdTime / names.length);
sdCount = Math.sqrt (sdCount / names.length);
sdLong = Math.sqrt (sdLong / names.length);
sdLength = Math.sqrt (sdLength / names.length);
sdWidth = Math.sqrt (sdWidth / names.length);
System.out.println ("Time : " + meanTime + " (" + sdTime + ")");
System.out.println ("Count : " + meanCount + " (" + sdCount + ")");
System.out.println ("Long : " + meanLong + " (" + sdLong + ")");
System.out.println ("Lendth : " + meanLength + " (" + sdLength + ")");
System.out.println ("Width : " + meanWidth + " (" + sdWidth + ")");
}
public PerfCompare (String name) throws IOException
{
BufferedReader flot = new BufferedReader (new FileReader (name));
String val = flot.readLine (); // nb runs
val = flot.readLine (); // width
val = flot.readLine (); // height
val = flot.readLine (); // time
double t1 = (new Double (val)).doubleValue ();
val = flot.readLine (); // trials
val = flot.readLine (); // count of segments
int ns1 = (new Integer (val)).intValue ();
val = flot.readLine (); // count of long segments
int nl1 = (new Integer (val)).intValue ();
val = flot.readLine (); // mean length
double l1 = (new Double (val)).doubleValue ();
val = flot.readLine (); // mean width
double w1 = (new Double (val)).doubleValue ();
val = flot.readLine (); // mean width of long segments
val = flot.readLine (); // time
double t2 = (new Double (val)).doubleValue ();
val = flot.readLine (); // trials
val = flot.readLine (); // count of segments
int ns2 = (new Integer (val)).intValue ();
val = flot.readLine (); // count of long segments
int nl2 = (new Integer (val)).intValue ();
val = flot.readLine (); // mean length
double l2 = (new Double (val)).doubleValue ();
val = flot.readLine (); // mean width
double w2 = (new Double (val)).doubleValue ();
val = flot.readLine (); // mean width of long segments
flot.close ();
timeRatio = t1 / t2;
countRatio = ns1 / (double) ns2;
longRatio = nl1 / (double) nl2;
lengthRatio = l1 / l2;
widthRatio = w1 / w2;
}
}
100
768
512
4.6903
1806
660
150
30.5512
2.27963
2.2943
5.72459
1814
636
150
31.725
2.57986
2.65468
100
768
512
6.40191
2748
1047
148
23.4331
2.29331
2.60233
7.43268
2638
942
171
26.4888
2.63111
2.94765
100
512
768
3.00952
1219
435
113
33.3889
1.96156
1.98553
3.52095
1191
375
101
38.4183
2.6502
2.71477
100
768
512
2.76221
1174
408
86
32.2011
1.72083
1.61854
3.10034
1074
354
82
37.2489
2.15799
2.11399
100
604
435
5.89507
2873
875
145
26.5632
2.17234
2.29212
6.96728
2791
796
163
29.9855
2.60888
2.67866
100
768
512
3.47058
1210
523
124
28.5383
2.11452
2.0609
4.10393
1186
469
129
32.2115
2.43933
2.40623
100
768
512
3.08177
1070
458
92
29.9653
2.21609
2.27448
3.71473
1011
437
113
32.5916
2.57131
2.64624
100
768
512
6.69281
3042
1012
147
22.7012
2.40284
2.60964
7.74526
2915
962
170
24.584
2.79463
2.91575
100
768
512
4.99343
2016
738
148
27.4874
2.04314
1.95366
5.89653
2058
687
144
28.4664
2.3839
2.31797
100
768
512
4.00064
1700
614
95
24.8282
2.15711
2.15276
4.69204
1648
579
101
26.3164
2.40674
2.41017
100
512
768
4.05439
1657
576
125
29.6341
2.11351
2.13721
4.80129
1600
525
122
33.409
2.50289
2.54529
100
512
768
2.39764
872
347
66
28.6302
2.16436
2.11984
2.82771
808
327
69
31.397
2.4599
2.45493
100
800
533
2.59955
914
352
94
33.2509
2.17087
2.21914
3.0047
851
306
85
38.5787
2.47154
2.46201
100
768
512
5.89527
2667
927
114
22.1006
2.49616
2.64012
6.95665
2642
853
138
24.2389
2.76982
2.85027
100
768
512
8.02477
4230
1196
71
14.7278
2.63801
2.28099
8.66283
4093
1164
75
15.6502
2.90617
2.80733
100
768
512
6.04887
2686
801
188
31.9457
2.14241
2.11146
7.28111
2577
748
211
35.3597
2.69916
2.71961
100
768
512
5.17888
1969
791
155
25.8714
2.25773
2.29206
6.04807
1871
705
154
29.3372
2.55873
2.60574
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment