Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions cmd/dwi2fod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ void run ()

if (argument.size() % 2)
throw Exception ("MSMT_CSD algorithm expects pairs of (input response function & output FOD image) to be provided");

DWI::SDeconv::MSMT_CSD::Shared shared (header_in);
shared.parse_cmdline_options();

Expand All @@ -301,7 +300,6 @@ void run ()
} catch (Exception& e) {
throw Exception (e, "MSMT_CSD algorithm expects the first file in each argument pair to be an input response function file");
}

shared.init();

DWI::stash_DW_scheme (header_out, shared.grad);
Expand All @@ -320,7 +318,6 @@ void run ()
MSMT_Processor processor (shared, mask, odfs, dwi_modelled);
auto dwi = header_in.get_image<float>().with_direct_io (3);
ThreadedLoop ("performing MSMT CSD ("
+ str(shared.num_shells()) + " shell" + (shared.num_shells() > 1 ? "s" : "") + ", "
+ str(num_tissues) + " tissue" + (num_tissues > 1 ? "s" : "") + ")",
dwi, 0, 3)
.run (processor, dwi);
Expand Down
29 changes: 29 additions & 0 deletions cmd/minimal.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "command.h"
#include "dwi/sdeconv/response.h"
// #include "dwi/shells.h"


using namespace MR;
using namespace App;

void usage () {

AUTHOR = "Joe Bloggs";
SYNOPSIS = "Estimate response function coefficients for a given b-value";
DESCRIPTION
+ "What the command does"
+ "multiple paragraphs can be added like this";

ARGUMENTS
+ Argument ("arg", "argument description").type_text();
}



void run()
{
DWI::SDeconv::Response response(argument[0]);

VAR(response.lmax());
VAR(response.coeffs(3500));
}
Loading