Skip to content

Commit

Permalink
Fixel::copy_directions_file(): Open existing images as floats
Browse files Browse the repository at this point in the history
  • Loading branch information
Lestropie committed Sep 18, 2020
1 parent e86ad11 commit 6e44429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/fixel/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ namespace MR

// If the directions file already exists check it is the same as the input directions file
if (Path::exists (output_path)) {
auto input_image = input_header.get_image<index_type>();
auto output_image = Image<index_type>::open (output_path);
auto input_image = input_header.get_image<float>();
auto output_image = Image<float>::open (output_path);
if (!images_match_abs (input_image, output_image))
throw Exception ("output fixel directory \"" + output_directory + "\" already contains directions file, "
+ "which is not the same as the expected output"
Expand Down

0 comments on commit 6e44429

Please sign in to comment.