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

kunzaatko / TransferFunctions.jl / 17332886172

29 Aug 2025 07:45PM UTC coverage: 0.0% (-81.0%) from 81.048%
17332886172

push

github

kunzaatko
test: Add the JET function filter again

0 of 732 relevant lines covered (0.0%)

0.0 hits per line

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

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

16
function kreshape(::Type{C}, krn::FFTView) where {C<:Colorant}
×
17
    kern = parent(krn)
×
18
    kernrs = FFTView(reshape(kern, 1, size(kern)...))
×
19
end
20
kreshape(::Type{C}, krn::FFTView) where {C<:ImageCore.Color1} = krn
×
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