From 734671a1af6810b9b41ae521eb2c43edf8fb035b Mon Sep 17 00:00:00 2001 From: admingeoffrey Date: Fri, 28 Feb 2025 10:16:07 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20#278:=20simply=20replace=20-=CF=83=20by?= =?UTF-8?q?=20-=CF=83^2=20in=20multiLoG=20and=20update=20the=20docstring?= =?UTF-8?q?=20of=20BlobLoG.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/extrema.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extrema.jl b/src/extrema.jl index 67e000a..26e44ca 100644 --- a/src/extrema.jl +++ b/src/extrema.jl @@ -6,7 +6,7 @@ It has fields: - σ: the value of σ which lead to the largest `-LoG`-filtered amplitude at this location - amplitude: the value of the `-LoG(σ)`-filtered image at the peak -Note that the radius is equal to σ√2. +Note that the radius is equal to σ√N for a N-dimensional image. See also: [`blob_LoG`](@ref). """ @@ -96,7 +96,7 @@ function multiLoG(img::AbstractArray{T,N}, sigmas, σshape) where {T,N} @inbounds for (isigma, σ) in enumerate(sigmas) LoG_slice = @view img_LoG[isigma, colons...] imfilter!(LoG_slice, img, Kernel.LoG(ntuple(i->σ*σshape[i], Val(N))), "reflect") - LoG_slice .*= -σ + LoG_slice .*= -σ^2 end return img_LoG end