Skip to content

Commit d2f47a6

Browse files
fix: use real part of irfft output
1 parent a6a3cce commit d2f47a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/imfilter.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,7 @@ end
874874
function filtfft(A, krn, planned_rfft1::Function, planned_rfft2::Function, planned_irfft::Function)
875875
B = planned_rfft1(A)
876876
complex(B) .*= conj!(complex(planned_rfft2(krn)))
877-
out = complex(planned_irfft(complex(B)))
878-
return out
877+
return real(planned_irfft(complex(B)))
879878
end
880879
filtfft(A, krn, ::Nothing, ::Nothing, ::Nothing) = filtfft(A, krn)
881880
function filtfft(A, krn)

0 commit comments

Comments
 (0)