diff options
author | Thomas White <taw@physics.org> | 2011-09-27 13:38:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:38 +0100 |
commit | 725b8b82ace3d76ad61f3dbde8e5f95c689472be (patch) | |
tree | cc609f3b75a71bc3e81e87c8f275ae6b92f98233 /src/scaling-report.c | |
parent | 6a55e3eb4d60eaec704d9525ad4f17628004b38b (diff) |
Include "PR dud" images from scale factor histograms in scaling report
Diffstat (limited to 'src/scaling-report.c')
-rw-r--r-- | src/scaling-report.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scaling-report.c b/src/scaling-report.c index 330b3af2..785c761f 100644 --- a/src/scaling-report.c +++ b/src/scaling-report.c @@ -403,6 +403,7 @@ static void scale_factor_histogram(cairo_t *cr, const struct image *images, osf_max = 0.0; for ( i=0; i<n; i++ ) { double osf = images[i].osf; + if ( images[i].pr_dud ) continue; if ( osf > osf_max ) osf_max = osf; } osf_max = ceil(osf_max+osf_max/10000.0); @@ -425,6 +426,8 @@ static void scale_factor_histogram(cairo_t *cr, const struct image *images, double osf = images[i].osf; + if ( images[i].pr_dud ) continue; + for ( b=0; b<nbins; b++ ) { if ( (osf >= osf_low[b]) && (osf < osf_high[b]) ) |