aboutsummaryrefslogtreecommitdiff
path: root/src/geoptimiser.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-05-04 10:15:05 +0200
committerThomas White <taw@physics.org>2018-05-04 10:15:05 +0200
commit475ccfb6910a1b2aa7f3828728081c95cca47c74 (patch)
tree349d96920636c6d55519fd28b9f78ffdb640e80e /src/geoptimiser.c
parent84cc0eb928790d0a56a0f0bd9294e1524f34c617 (diff)
Formatting fussiness
Diffstat (limited to 'src/geoptimiser.c')
-rw-r--r--src/geoptimiser.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/geoptimiser.c b/src/geoptimiser.c
index d58d8ba6..fec1adb5 100644
--- a/src/geoptimiser.c
+++ b/src/geoptimiser.c
@@ -1594,14 +1594,12 @@ static double compute_rotation_and_stretch(struct rg_collection *connected,
free(stretches);
}
-
if ( gparams->norotation ) {
STATUS("However, rotation will not be optimized, so the "
"rotation angle has been set to 0\n");
for ( di=0; di<connected->n_rigid_groups; di++ ) {
conn_data[di].cang = 0.0;
}
-
}
stretch_cf = 1.0;
@@ -1669,7 +1667,8 @@ static double compute_rotation_and_stretch(struct rg_collection *connected,
#ifdef HAVE_SAVE_TO_PNG
static void draw_panel(struct image *image, cairo_t *cr,
- cairo_matrix_t *basic_m, GdkPixbuf **pixbufs, int i) {
+ cairo_matrix_t *basic_m, GdkPixbuf **pixbufs, int i)
+{
struct panel p = image->det->panels[i];
int w = gdk_pixbuf_get_width(pixbufs[i]);
int h = gdk_pixbuf_get_height(pixbufs[i]);
@@ -2194,9 +2193,9 @@ int optimize_geometry(struct geoptimiser_params *gparams,
double avg_res;
double clen_to_use;
- // for angles and stretch calculation use
- // only pixels which are distco*size_panel
- // away
+ /* for angles and stretch calculation use
+ * only pixels which are distco*size_panel
+ * away */
double dist_coeff_for_rot_str = 0.2;
double total_error;