Browse Source

Use z-spacing option

Matthias Vogelgesang 9 years ago
parent
commit
cb0fa180ed
3 changed files with 4 additions and 0 deletions
  1. 2 0
      lamino.c
  2. 1 0
      reco.c
  3. 1 0
      reco.h

+ 2 - 0
lamino.c

@@ -164,6 +164,7 @@ parse_params (Params *params, int argc, char **argv)
         { "vw", 0, 0, G_OPTION_ARG_INT, &params->v_size[0], "Width of box", "[int]" },
         { "vh", 0, 0, G_OPTION_ARG_INT, &params->v_size[1], "Height of box", "[int]" },
         { "vd", 0, 0, G_OPTION_ARG_INT, &params->v_size[2], "Depth of box", "[int]" },
+        { "z-spacing", 0, 0, G_OPTION_ARG_DOUBLE, &params->z_spacing, "Z-spacing", "[int]" },
         { "interactive", 0, 0, G_OPTION_ARG_NONE, &params->interactive, "Start interactive mode", "" },
         { NULL }
     };
@@ -214,6 +215,7 @@ main (int argc, char **argv)
         .px_variation = 0.0,
         .v_size = {256, 256, 256},
         .v_origin = {0.0, 0.0, 0.0},
+        .z_spacing = 1.0,
         .cache = NULL,
     };
 

+ 1 - 0
reco.c

@@ -166,6 +166,7 @@ reco_graph_new (Params *params)
                   "vol-sx", params->v_size[0],
                   "vol-sy", params->v_size[1],
                   "vol-sz", params->v_size[2],
+                  "vol-z-spacing", params->z_spacing,
                   NULL);
 
     g_object_set (data->writer,

+ 1 - 0
reco.h

@@ -22,6 +22,7 @@ typedef struct {
     gdouble px_variation;
     gdouble v_origin[3];
     guint v_size[3];
+    gdouble z_spacing;
     GOptionEntry *entries;
 
     gchar *cache;