Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
5ttregrid: Re-grids a five-tissue-type (5TT) image suitable for Anatomically-Constrained Tractography (ACT) using oversampling
#include "command.h"
#include "image.h"
#include "dwi/directions/set.h"
#include "dwi/tractography/SIFT/model_base.h"
using namespace MR;
using namespace App;
void usage ()
{
AUTHOR = "Robert E. Smith (robert.smith@florey.edu.au)";
DESCRIPTION
+ "re-grid a 5TT image to match a lower-resolution template image";
ARGUMENTS
+ Argument ("in", "input template image").type_image_in()
+ Argument ("out", "output 5TT image") .type_image_out();
OPTIONS
+ Option ("act", "provide the high-resolution ACT five-tissue-type segmented anatomical image ").required()
+ Argument ("image").type_image_in();
}
void run ()
{
auto in = Image<float>::open (argument[0]);
DWI::Directions::FastLookupSet dirs (1281); // dummy
DWI::Tractography::SIFT::ModelBase<DWI::Tractography::SIFT::FixelBase> model (in, dirs);
model.output_5tt_image (argument[1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.