Skip to content

Commit

Permalink
more tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jan 13, 2024
1 parent 8d4e43e commit 2670df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/imfilter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -860,13 +860,13 @@ function filtfft(A, krn, plan_A::FFTW.rFFTWPlan, plan_krn::FFTW.rFFTWPlan, plan_
B .*= conj!(plan_krn * krn)
plan_B * B
end

function filtfft(A, krn, ::Nothing, ::Nothing, ::Nothing)
filtfft(A, krn, ::Nothing, ::Nothing, ::Nothing) = filtfft(A, krn)
function filtfft(A, krn)
B = rfft(A)
B .*= conj!(rfft(krn))
irfft(B, length(axes(A, 1)))
end
function filtfft(A::AbstractArray{C}, krn, ::Nothing, ::Nothing, ::Nothing) where {C<:Colorant}
function filtfft(A::AbstractArray{C}, krn) where {C<:Colorant}
Av, dims = channelview_dims(A)
kernrs = kreshape(C, krn)
B = rfft(Av, dims)
Expand Down

0 comments on commit 2670df0

Please sign in to comment.