-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi!
See:
Line 36 in c5074a4
function gaussf(img::AbstractArray{T}, sigma=1.0; dtype=Float32) where (T <: Real) |
I would probably implement it like:
function filter_gauss(img::AbstractArray{T}, sigma=one(T), dims=1:ndims(img)) where (T <: Real)
shiftdims = dims[2:end]
f = rfft(img, dims)
return irfft(f .* ifftshift(gaussian(T, size(f),
offset=CtrRFT,
sigma=size(img) ./ (T(2π) .*sigma)),
shiftdims),
size(img, dims[1]), dims)
end
Metadata
Metadata
Assignees
Labels
No labels