Skip to content

Commit

Permalink
Added @OnFo output for brain_phantom2D, brain_phantom3D and pelvis_ph…
Browse files Browse the repository at this point in the history
…antom3.

example:
julia> obj= pelvis_phantom2D(;);
[ Info: Pelvis phantom 2D sample spacing is 2.0 mm.
modified:   Phantom.jl
  • Loading branch information
curtcorum committed Mar 8, 2024
1 parent cd0ffaf commit e899238
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions KomaMRIBase/src/datatypes/Phantom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ function brain_phantom2D(; axis="axial", ss=4, us=1)

# Define spin position vectors
Δx = .5e-3*ss/us
@info "Brain phantom 2D sample spacing is $(Δx*1000) mm."
M, N = size(class)
FOVx = (M-1)*Δx #[m]
FOVy = (N-1)*Δx #[m]
Expand Down Expand Up @@ -316,6 +317,7 @@ function brain_phantom3D(;ss=4,us=1,start_end=[160, 200])

# Define spin position vectors
Δx = .5e-3*ss/us
@info "Brain phantom 3D sample spacing is $(Δx*1000) mm."
M, N, Z = size(class)
FOVx = (M-1)*Δx #[m]
FOVy = (N-1)*Δx #[m]
Expand Down Expand Up @@ -424,6 +426,7 @@ function pelvis_phantom2D(; ss=4, us=1)

# Define spin position vectors
Δx = .5e-3*ss/us
@info "Pelvis phantom 2D sample spacing is $(Δx*1000) mm."
M, N = size(class)
FOVx = (M-1)*Δx # [m]
FOVy = (N-1)*Δx # [m]
Expand Down

0 comments on commit e899238

Please sign in to comment.