Skip to content
Snippets Groups Projects
Commit 89457170 authored by Christian Beckmann's avatar Christian Beckmann
Browse files

added --keep_meanvol and --keep_meantc

parent 3a5a47da
No related branches found
No related tags found
No related merge requests found
...@@ -56,15 +56,21 @@ namespace Melodic{ ...@@ -56,15 +56,21 @@ namespace Melodic{
message(" done" << endl); message(" done" << endl);
} }
else{ else{
message(string(" Removing mean image ...")); if(opts.remove_meanvol.value())
meanR = mean(tmpData); {
tmpData = remmean(tmpData); message(string(" Removing mean image ..."));
message(" done" << endl); meanR = mean(tmpData);
tmpData = remmean(tmpData);
message(" done" << endl);
}
else meanR=ones(1,tmpData.Ncols());
} }
// meanC = mean(tmpData,2); if(opts.remove_meantc.value()){
// tmpData = remmean(tmpData,2); meanC = mean(tmpData,2);
tmpData = remmean(tmpData,2);
}
//convert to power spectra //convert to power spectra
if(opts.pspec.value()){ if(opts.pspec.value()){
message(" Converting data to powerspectra ..."); message(" Converting data to powerspectra ...");
......
...@@ -119,7 +119,8 @@ class MelodicOptions { ...@@ -119,7 +119,8 @@ class MelodicOptions {
Option<float> smooth_probmap; Option<float> smooth_probmap;
Option<bool> remove_meanvol; Option<bool> remove_meanvol;
Option<bool> remove_endslices; Option<bool> remove_meantc;
Option<bool> remove_endslices;
Option<bool> rescale_nht; Option<bool> rescale_nht;
Option<bool> guess_remderiv; Option<bool> guess_remderiv;
...@@ -351,9 +352,12 @@ class MelodicOptions { ...@@ -351,9 +352,12 @@ class MelodicOptions {
smooth_probmap(string("--smooth_pm"), 0.0, smooth_probmap(string("--smooth_pm"), 0.0,
string("width of smoothing kernel for probability maps"), string("width of smoothing kernel for probability maps"),
false, requires_argument, false), false, requires_argument, false),
remove_meanvol(string("--keepmeanvol"), true, remove_meanvol(string("--keep_meanvol"), true,
string("do not subtract mean volume"), string("do not subtract mean volume"),
false, no_argument, false), false, no_argument, false),
remove_meantc(string("--keep_meantc"), true,
string("do not remove mean time course"),
false, no_argument, false),
remove_endslices(string("--remEndslices"), false, remove_endslices(string("--remEndslices"), false,
string("delete end slices (motion correction artefacts)"), string("delete end slices (motion correction artefacts)"),
false, no_argument,false), false, no_argument,false),
...@@ -439,6 +443,7 @@ class MelodicOptions { ...@@ -439,6 +443,7 @@ class MelodicOptions {
options.add(nlconst2); options.add(nlconst2);
options.add(smooth_probmap); options.add(smooth_probmap);
options.add(remove_meanvol); options.add(remove_meanvol);
options.add(remove_meantc);
options.add(remove_endslices); options.add(remove_endslices);
options.add(rescale_nht); options.add(rescale_nht);
options.add(guess_remderiv); options.add(guess_remderiv);
......
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