Skip to content

Commit

Permalink
reduce smoothing in mask_from_voxelquality
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbinian Eckstein committed Jan 25, 2022
1 parent 218c6b0 commit 3098597
Show file tree
Hide file tree
Showing 2 changed files with 2 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 = "MriResearchTools"
uuid = "557dad86-b9bd-4533-8525-1a39684d020f"
authors = ["Korbinian Eckstein"]
version = "0.6.0"
version = "0.6.1"

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand Down
2 changes: 1 addition & 1 deletion src/romeofunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function mask_from_voxelquality(qmap, threshold)
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; padding=true) .> 0.8 # hardcoded final threshold
return gaussiansmooth3d(qmap_bin, (1,1,1)) .> 0.8 # hardcoded final threshold
end

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

2 comments on commit 3098597

@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/53151

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.6.1 -m "<description of version>" 3098597f252a7834e4d087519191158db26167ca
git push origin v0.6.1

Please sign in to comment.