|
@@ -86,7 +86,7 @@ int main(int argc, char *argv[])
|
|
|
threshold->required = NO;
|
|
|
threshold->multiple = NO;
|
|
|
threshold->description = _("Sensitivity of Gaussian filter");
|
|
|
- threshold->answer = "10";
|
|
|
+ threshold->answer = "0.01";
|
|
|
|
|
|
orientations = G_define_option();
|
|
|
orientations->key = "orientations";
|
|
@@ -103,10 +103,9 @@ int main(int argc, char *argv[])
|
|
|
/* open input cell map */
|
|
|
inputfd = Rast_open_old(input_map->answer, "");
|
|
|
|
|
|
- sscanf(threshold->answer, "%1lf", &Thresh);
|
|
|
+ Thresh = atof(threshold->answer);
|
|
|
if (Thresh <= 0.0)
|
|
|
G_fatal_error(_("Threshold less than or equal to zero not allowed"));
|
|
|
- Thresh /= 100.0;
|
|
|
|
|
|
sscanf(width->answer, "%f", &Width);
|
|
|
|