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

kunzaatko / TransferFunctions.jl / 17100492288

20 Aug 2025 01:52PM UTC coverage: 0.0% (-74.8%) from 74.77%
17100492288

push

github

kunzaatko
feat: introduce comprehensive transfer function models

This commit significantly expands the available transfer function models and
refactors the documentation structure to support them.

Changes include:
- **New Models:** Added Airy Disc, Gaussian, Born & Wolf, Gibson & Lanni, and
  Circular Pupil transfer function models.
- **Documentation Overhaul:** Restructured the manual pages, separating linear
  and nonlinear transfer functions, and creating dedicated sections for
  individual model types. Updated `InterLinks` for new dependencies and removed
  old API reference sections.
- **Dependency Updates:**
    - Added `ComponentArrays` and `Rotations` for new functionalities.
    - Removed `ImageFiltering` dependency.
    - Updated `InterfaceFunctions` compatibility.

0 of 169 new or added lines in 12 files covered. (0.0%)

364 existing lines in 15 files now uncovered.

0 of 633 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

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

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