Skip to content

Commit

Permalink
dwi2tensor: Preserve dw_scheme for -predicted_signal
Browse files Browse the repository at this point in the history
Preserving the diffusion gradient scheme in the image header for the output of the -predicted_signal option is preferable for enabling visualisation of such data using the MRView ODF Tool in Dixel mode.
  • Loading branch information
Lestropie committed Aug 5, 2024
1 parent e7f540b commit f3ea8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dwi2tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,14 @@ void run ()
Header header (dwi);
header.datatype() = DataType::Float32;
header.ndim() = 4;
DWI::stash_DW_scheme (header, grad);
PhaseEncoding::clear_scheme (header);

Image<value_type> predict;
opt = get_options ("predicted_signal");
if (opt.size())
predict = Image<value_type>::create (opt[0][0], header);

DWI::stash_DW_scheme (header, grad);
header.size(3) = 6;
auto dt = Image<value_type>::create (argument[1], header);

Expand Down

0 comments on commit f3ea8cf

Please sign in to comment.