Skip to content

Adds support for specifying kernels using StaticArrays#254

Open
zygmuntszpak wants to merge 1 commit into
masterfrom
static_arrays
Open

Adds support for specifying kernels using StaticArrays#254
zygmuntszpak wants to merge 1 commit into
masterfrom
static_arrays

Conversation

@zygmuntszpak
Copy link
Copy Markdown
Member

Fixes #252

@zygmuntszpak zygmuntszpak requested a review from timholy December 5, 2022 10:57
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 5, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.97%. Comparing base (826df52) to head (7e2a965).
⚠️ Report is 32 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #254       +/-   ##
===========================================
+ Coverage   78.62%   91.97%   +13.34%     
===========================================
  Files          12       12               
  Lines        1062     1657      +595     
===========================================
+ Hits          835     1524      +689     
+ Misses        227      133       -94     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zygmuntszpak
Copy link
Copy Markdown
Member Author

@timholy Please could you take a look when you get a chance

Comment thread Project.toml
@johnnychen94 johnnychen94 self-assigned this Jan 3, 2023
@johnnychen94
Copy link
Copy Markdown
Member

Sorry I missed this PR and the issue. Will check it ASAP.

Comment thread src/border.jl
hi = last(ind)+last(pad)
interval = 1:length(lo:hi)
T = typeof(T₁)
I = typeof(SOneTo(length(interval)))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unfortunately a type-unstable patch: SOneTo{n} where n = length(interval) is runtime information.

IIUC, unless the image itself is also a SMatrix, we can't get a static pad, and thus we can't make it type stable.

The solution to support static array inputs might be converting it back to normal array and unit ranges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error When Using SMatrix for FIR Separable Filtration

3 participants