Skip to content

Commit

Permalink
Merge pull request #513 from WilhelmusLab/512-fix-hbreak
Browse files Browse the repository at this point in the history
fix: hbreak
  • Loading branch information
cpaniaguam authored Nov 12, 2024
2 parents 5f18020 + 1157cfc commit 2710e9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hbreak.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ hbreak(img) = hbreak!(copy(img))
Inplace version of `hbreak`. See also [`hbreak`](@ref).
"""
function hbreak!(img::T)::T where {T<:AbstractArray{Bool}}
f = x -> get(make_hbreak_dict(), x, false)
hbreak_dict = make_hbreak_dict()
f = x -> get(hbreak_dict, x, false)
R = CartesianIndices(img)
I_first, I_last = first(R), last(R)
Δ = CartesianIndex(1, 1)
Expand Down

0 comments on commit 2710e9a

Please sign in to comment.