Skip to content
Snippets Groups Projects
Commit 732d115c authored by Matthew Webster's avatar Matthew Webster
Browse files

fixes for tfce

parent 102968d6
No related branches found
No related tags found
No related merge requests found
...@@ -858,18 +858,21 @@ if (!separatenoise) ...@@ -858,18 +858,21 @@ if (!separatenoise)
/*****************END OF FILTERING OPTIONS***************/ /*****************END OF FILTERING OPTIONS***************/
else if (string(argv[i])=="-edge") else if (string(argv[i])=="-edge")
input_volume=edge_strengthen(input_volume); input_volume=edge_strengthen(input_volume);
else if (string(argv[i])=="-tfce") else if (string(argv[i])=="-tfce") {
// {{{ TFCE option float height_power = atof(argv[++i]);
float size_power = atof(argv[++i]);
int connectivity = atoi(argv[++i]);
{ for(int t=0;t<input_volume.tsize();t++) {
float height_power = atof(argv[++i]); try {
float size_power = atof(argv[++i]);
int connectivity = atoi(argv[++i]);
for(int t=0;t<input_volume.tsize();t++)
tfce(input_volume[t], height_power, size_power, connectivity, 0, input_volume[t].max()); tfce(input_volume[t], height_power, size_power, connectivity, 0, input_volume[t].max());
}
catch(Exception& e) {
cerr << "ERROR: TFCE failed, please check your file for valid sizes and voxel values." << e.what() << endl << endl << "Exiting" << endl;
return 1;
}
} }
}
// }}} // }}}
else if (string(argv[i])=="-tfceS") else if (string(argv[i])=="-tfceS")
// {{{ TFCE supporting-area option // {{{ TFCE supporting-area option
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment