• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kunzaatko / TransferFunctions.jl / 17264570321

27 Aug 2025 10:47AM UTC coverage: 81.766%. Remained the same
17264570321

push

github

kunzaatko
test: Add test for the indices method on the PSF

565 of 691 relevant lines covered (81.77%)

33464341.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/ext/ImageCoreExt.jl
1
module ImageCoreExt
2
using ImageCore, FFTViews, FFTW
3
using TransferFunctions
4

5
function TransferFunctions.corrfft(A::AbstractArray{CT}, krn) where {CT<:Colorant}
24✔
6
    Av, dims = channelview_dims(A)
24✔
7
    kernrs = kreshape(CT, krn)
24✔
8
    B = rfft(Av, dims)
24✔
9
    B .*= conj!(rfft(kernrs, dims))
48✔
10
    Avf = irfft(B, length(axes(Av, dims[1])), dims)
24✔
11
    colorview(base_colorant_type(CT){eltype(Avf)}, Avf)
24✔
12
end
13
channelview_dims(A::AbstractArray{C,N}) where {C<:Colorant,N} = channelview(A), ntuple(d -> d + 1, Val(N))
30✔
14
channelview_dims(A::AbstractArray{C,N}) where {C<:ImageCore.Color1,N} = channelview(A), ntuple(identity, Val(N))
12✔
15

16
function kreshape(::Type{C}, krn::FFTView) where {C<:Colorant}
6✔
17
    kern = parent(krn)
12✔
18
    kernrs = FFTView(reshape(kern, 1, size(kern)...))
12✔
19
end
20
kreshape(::Type{C}, krn::FFTView) where {C<:ImageCore.Color1} = krn
12✔
21
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc