Skip to content

Commit

Permalink
update romeo version
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbinian Eckstein committed Apr 12, 2022
1 parent 886e746 commit a32cc2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MriResearchTools"
uuid = "557dad86-b9bd-4533-8525-1a39684d020f"
authors = ["Korbinian Eckstein"]
version = "0.6.3"
version = "0.7.0"

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand All @@ -20,5 +20,5 @@ Interpolations = "0.12 - 0.13"
NIfTI = "0.4 - 0.5"
PaddedViews = "0.5"
Requires = "1"
ROMEO = "0.2.5"
ROMEO = "0.3"
julia = "1.5"
2 changes: 2 additions & 0 deletions src/mcpc3ds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ function combinewithPO(compl, po)
return combined ./ sqrt.(abs.(combined))
end

## Bipolar correction
# see https://doi.org/10.34726/hss.2021.43447, page 53, 3.1.3 Bipolar Corrections
function bipolar_correction!(image; TEs, σ, mask)
fG = artefact(image, TEs)
fG .= gaussiansmooth3d_phase(fG, σ; mask)
Expand Down
4 changes: 2 additions & 2 deletions src/romeofunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ julia> mask = mask_from_voxelquality(qmap);
See also [`romeovoxelquality`](@ref), [`romeo`](@ref), [`robustmask`](@ref)
"""
function mask_from_voxelquality(qmap::AbstractArray, threshold=0.5)
function mask_from_voxelquality(qmap::AbstractArray, threshold=0.2, th2=0.8)
qmap_bin = qmap .> threshold # NaN defaults to false (0)
max_hole_size = length(qmap) / 20
qmap_bin = .!imfill(.!qmap_bin, (1, max_hole_size)) # fills all holes up to max_hole_size (uses 6 connectivity as default)
return gaussiansmooth3d(qmap_bin, (1,1,1)) .> 0.8 # hardcoded final threshold
return gaussiansmooth3d(qmap_bin, (1,1,1)) .> th2
end

function ROMEO.calculateweights(phase::AbstractArray{T,4}; TEs, template=2, p2ref=1, keyargs...) where T
Expand Down

2 comments on commit a32cc2c

@korbinian90
Copy link
Owner

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/58393

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.0 -m "<description of version>" a32cc2cd6637b96b34e37bbf40292ab55452b36e
git push origin v0.7.0

Please sign in to comment.