Skip to content

Commit

Permalink
Merge pull request #511 from WilhelmusLab/510-fix-bridge
Browse files Browse the repository at this point in the history
fix: bridge
  • Loading branch information
cpaniaguam authored Nov 12, 2024
2 parents 1a7842c + b80dfc3 commit 5f18020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bridge.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
include("./lut/lutbridge.jl")

const LUTBRIDGE = make_lutbridge()

function _bridge_operator_lut(
I::CartesianIndex{2},
img::AbstractArray{Bool},
nhood::CartesianIndices{2,Tuple{UnitRange{Int64},UnitRange{Int64}}},
)
lutbridge = make_lutbridge()
return _operator_lut(I, img, nhood, lutbridge)
return _operator_lut(I, img, nhood, LUTBRIDGE)
end

# TODO: see about implemting _filter using parallelization
function _filter(img::T, operator::Function)::T where {T<:AbstractArray{Bool}}
out = zeros(Bool, size(img))
R = CartesianIndices(img)
Expand Down

0 comments on commit 5f18020

Please sign in to comment.