Skip to content
Snippets Groups Projects
Commit d6d3b823 authored by Stamatios Sotiropoulos's avatar Stamatios Sotiropoulos
Browse files

Include noise floor as an option

parent 6dcecf5a
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ class pvmfitOptions { ...@@ -36,6 +36,7 @@ class pvmfitOptions {
Option<string> bvalsfile; Option<string> bvalsfile;
Option<int> nfibres; Option<int> nfibres;
Option<int> modelnum; Option<int> modelnum;
Option<bool> include_f0;
Option<bool> cnonlinear; Option<bool> cnonlinear;
bool parse_command_line(int argc, char** argv); bool parse_command_line(int argc, char** argv);
...@@ -84,10 +85,13 @@ class pvmfitOptions { ...@@ -84,10 +85,13 @@ class pvmfitOptions {
string("number of fibres to fit - default=1"), string("number of fibres to fit - default=1"),
false, requires_argument), false, requires_argument),
modelnum(string("--model"), 1, modelnum(string("--model"), 1,
string("1:monoexponential;2:non mono-exponential"), string("\t1:monoexponential;2:non mono-exponential"),
false, requires_argument), false, requires_argument),
include_f0(string("--f0"),false,
string("\tInclude noise floor in the model (default=false)"),
false,no_argument),
cnonlinear(string("--cnonlinear"),false, cnonlinear(string("--cnonlinear"),false,
string("Apply constrained nonlinear optimization on the diffusivity, volume fractions and their sum"), string("Apply constrained nonlinear optimization on diffusivity, volume fractions (model1)"),
false,no_argument), false,no_argument),
options("pvmfit", "pvmfit -k <datafile> -m <maskfile> -r <bvecsfile> -b <bvalsfile> [-n 2]\n") options("pvmfit", "pvmfit -k <datafile> -m <maskfile> -r <bvecsfile> -b <bvalsfile> [-n 2]\n")
{ {
...@@ -103,6 +107,7 @@ class pvmfitOptions { ...@@ -103,6 +107,7 @@ class pvmfitOptions {
options.add(bvalsfile); options.add(bvalsfile);
options.add(nfibres); options.add(nfibres);
options.add(modelnum); options.add(modelnum);
options.add(include_f0);
options.add(cnonlinear); options.add(cnonlinear);
} }
catch(X_OptionError& e) { catch(X_OptionError& e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment