Skip to content

Commit

Permalink
Fix gencheckregpair for weird filetype images.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashorn committed Dec 19, 2018
1 parent a99beaf commit ef0c78e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ea_gencheckregpair.m
Expand Up @@ -20,6 +20,8 @@ function ea_gencheckregpair(moving,fixed,outfn)
mov.img(mov.img<Lbound)=Lbound;

%mov.img(mov.img(:)~=0)=ea_contrast(mov.img(mov.img(:)~=0),2,0);
mov.filetype=16;
mov.hdr.dime.scl_slope=1;
ea_save_untouch_nii(mov,[tempdir,'lead_temp',uuid,'.nii'])
cmd=[SLICER,' ',ea_path_helper([tempdir,'lead_temp',uuid,'.nii']),' ',ea_path_helper(fixed),' -e 0.05 -i ',num2str(Lbound),' ',num2str(Ubound),' -a ',ea_path_helper(outfn)];
basedir=fileparts(outfn);
Expand Down

0 comments on commit ef0c78e

Please sign in to comment.