Skip to content

Commit

Permalink
Enforce minimum of vessel phantom to be 0
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljuerss committed Feb 28, 2024
1 parent b0a1ddd commit 6344c14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Vessel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,5 +189,6 @@ function vesselPhantom(N::NTuple{3,Int}; oversampling=2, rng = GLOBAL_RNG, kerne
end
img = imfilter(img, Kernel.gaussian(kernelWidth))
img[img .> 1] .= 1
img[img .< 0] .= 0
return img
end

0 comments on commit 6344c14

Please sign in to comment.