Skip to content

Commit

Permalink
remove NAN
Browse files Browse the repository at this point in the history
  • Loading branch information
aTrotier committed Oct 10, 2022
1 parent 3d234a1 commit f026fc5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ Isense,MP2_sense,T1map,_ = recoMP2RAGE_CS(b)
## Write back data in Bruker format
include("utils_write_bruker.jl");

Isense = abs.(Isense)
Isense[isnan.(Isense)] .= 0
MP2_sense[isnan.(MP2_sense)] .= 0
T1map[isnan.(T1map)] .= 0

image_4D = zeros(Float64,size(MP2_sense,1),size(MP2_sense,2),size(MP2_sense,3),4);
image_4D[:,:,:,1:2]=abs.(Isense[:,:,:,1:2])
image_4D[:,:,:,3]=MP2_sense;
Expand Down

0 comments on commit f026fc5

Please sign in to comment.