From b80dfc31f7bedc2f21a00ba76056a3aef6186048 Mon Sep 17 00:00:00 2001 From: cpaniaguam Date: Tue, 12 Nov 2024 11:10:52 -0500 Subject: [PATCH] fix: bridge --- src/bridge.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bridge.jl b/src/bridge.jl index 997225cb..943553c5 100644 --- a/src/bridge.jl +++ b/src/bridge.jl @@ -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)