Skip to content

Commit

Permalink
Update nii2png.m
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlaurence committed Feb 12, 2020
1 parent 1703f08 commit 883ac85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matlab/nii2png.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
% ask user to rotate and by how much
ask_rotate = input(' Would you like to rotate the orientation? (y/n) ', 's');
if lower(ask_rotate) == 'y'
ask_rotate_num = str2double(input('OK. By 90掳 180掳 or 270掳? ', 's'));
ask_rotate_num = str2double(input('OK. By 90掳 180掳 or 270掳? ', 's'));
if ask_rotate_num == 90 || ask_rotate_num == 180 || ask_rotate_num == 270
disp('Got it. Your images will be rotated.');
else
Expand Down Expand Up @@ -170,7 +170,7 @@
disp(percentage);
end
end
i = i + 1;
current_slice = current_slice + 1;
end
elseif length(nifti_array) ~= 3 || 4
disp('NIfTI must be 3D or 4D. Please try again.');
Expand Down

1 comment on commit 883ac85

@MahisFlechas
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Alex , thank you so much for your code. It has been extremely helpful ! I'm currently in the need to calculate the entropy of each slice and keep only the ones of 50 highest entropy values. I'm still working on it but I haven't succeeded yet . How would you add this step ? Please , I really need this. Thank you so much in advance ^_^

Please sign in to comment.