-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tckgen PTT: Differentiate probe length from step size
Co-authored-by: Dogu Baran Aydogan <baran.aydogan@gmail.com>
- Loading branch information
1 parent
4573f29
commit e4a16ae
Showing
4 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* Copyright (c) 2008-2023 the MRtrix3 contributors. | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* Covered Software is provided under this License on an "as is" | ||
* basis, without warranty of any kind, either expressed, implied, or | ||
* statutory, including, without limitation, warranties that the | ||
* Covered Software is free of defects, merchantable, fit for a | ||
* particular purpose or non-infringing. | ||
* See the Mozilla Public License v. 2.0 for more details. | ||
* | ||
* For more details, see http://www.mrtrix.org/. | ||
*/ | ||
|
||
#include "dwi/tractography/algorithms/ptt.h" | ||
|
||
|
||
namespace MR | ||
{ | ||
namespace DWI | ||
{ | ||
namespace Tractography | ||
{ | ||
namespace Algorithms | ||
{ | ||
|
||
|
||
|
||
using namespace App; | ||
|
||
|
||
|
||
const OptionGroup PTTOptions = OptionGroup ("Options specific to the Parallel Transport Tractography (PTT) algorithm") | ||
+ Option ("probe_length", "length of probe used to sample FOD amplitudes; not necessarily equal to step size (default: " + str(Defaults::probelength_voxels_ptt) + " x voxel size)") | ||
+ Argument ("value").type_float (0.0); | ||
|
||
|
||
|
||
void load_PTT_options (Tractography::Properties& properties) | ||
{ | ||
auto opt = get_options ("probe_length"); | ||
if (opt.size()) | ||
properties["probe_length"] = str<float> (opt[0][0]); | ||
} | ||
|
||
|
||
|
||
} | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters