From c4e91973d72f159a8e3be0e5e45580f54352c5ed Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 12 Oct 2011 12:25:35 +0200 Subject: Take number of dud images into account for partiality graph --- src/scaling-report.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/scaling-report.c') diff --git a/src/scaling-report.c b/src/scaling-report.c index a1d1fbd3..b499e59d 100644 --- a/src/scaling-report.c +++ b/src/scaling-report.c @@ -178,6 +178,7 @@ static void partiality_graph(cairo_t *cr, const struct image *images, int n, double prob; double pcalcmin[nbins]; double pcalcmax[nbins]; + int num_nondud; show_text_simple(cr, "Observed partiality", -20.0, g_height/2.0, NULL, -M_PI_2, J_CENTER); @@ -199,8 +200,14 @@ static void partiality_graph(cairo_t *cr, const struct image *images, int n, } pcalcmax[nbins-1] += 0.001; /* Make sure it include pcalc = 1 */ + num_nondud = 0; + for ( i=0; i