Skip to content

Commit

Permalink
set the number of mip slices from the caller
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbinian Eckstein committed Sep 9, 2024
1 parent f20c88e commit f97751c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CLEARSWI"
uuid = "06ae4d9b-ce5e-4813-a1b3-426e46312ec2"
authors = ["Korbinian Eckstein"]
version = "1.3.3"
version = "1.3.4"

[deps]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Expand Down
3 changes: 3 additions & 0 deletions ext/ClearswiApp/argparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ function getargs(args::AbstractVector, version)
specified in array or range syntax (eg. "[1.5,3.0]" or
"3.5:3.5:14")."""
nargs = '+'
"--mip-slices", "-s"
help = "The number of slices in the MIP image"
default = 7
"--qsm"
help = """When activated uses RTS QSM for phase weighting.
"""
Expand Down
2 changes: 1 addition & 1 deletion ext/ClearswiApp/caller.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function CLEARSWI.clearswi_main(args; version="1.3.3")
options = Options(;mag_combine, mag_sens, mag_softplus, phase_unwrap, phase_hp_sigma, phase_scaling_type, phase_scaling_strength, writesteps, qsm)

swi = calculateSWI(data, options)
mip = createIntensityProjection(swi, minimum)
mip = createIntensityProjection(swi, minimum, settings["mip-slices"])

savenii(swi, filename, writedir, hdr)
savenii(mip, "mip", writedir, hdr)
Expand Down

0 comments on commit f97751c

Please sign in to comment.