Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use faster implementation of binary dilation using FFT #1638

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

larrybradley
Copy link
Member

Binary dilation is very slow, especially for large footprints. This PR adds a faster implementation using fast Fourier transforms (FFTs) that gives identical results to scipy's binary_dilation. Based on the following paper: "Dilation and Erosion of Gray Images with Spherical Masks", J. Kukal, D. Majerova, A. Prochazka (Jan 2007).

@larrybradley larrybradley added this to the 1.10.0 milestone Oct 6, 2023
@larrybradley larrybradley merged commit 89efd09 into astropy:main Oct 6, 2023
23 of 24 checks passed
@larrybradley larrybradley deleted the faster-dilation branch October 6, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant