Skip to content

Commit

Permalink
fixed a bug in the "-dilation-gauss" and "-erosion-gauss" arguments f…
Browse files Browse the repository at this point in the history
…or "filter_mrc"
  • Loading branch information
jewettaij committed Jul 18, 2021
1 parent 9e81eb7 commit fac355f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/filter_mrc/filter_mrc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ using namespace std;


string g_program_name("filter_mrc");
string g_version_string("0.29.5");
string g_date_string("2021-7-17");
string g_version_string("0.29.6");
string g_date_string("2021-7-18");



Expand Down
6 changes: 4 additions & 2 deletions bin/filter_mrc/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,11 @@ Settings::ParseArgs(vector<string>& vArgs)
width_a[2] = width_a[0];
// Then append a post-processing threshold filter:
use_intensity_map = true;
if (vArgs[i] == "-dilate-gauss")
if ((vArgs[i] == "-dilation-gauss") ||
(vArgs[i] == "-dilate-gauss"))
in_threshold_01_a = 0.1572992070502851; // ≈ 1-erf(1)
else if (vArgs[i] == "-erode-gauss")
else if ((vArgs[i] == "-erosion-gauss") ||
(vArgs[i] == "-erode-gauss"))
in_threshold_01_a = 0.8427007929497149; // ≈ erf(1)
in_threshold_01_b = in_threshold_01_a;

Expand Down

0 comments on commit fac355f

Please sign in to comment.