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

Add B-spline and Gaussian filters #36

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

RunDevelopment
Copy link
Contributor

@RunDevelopment RunDevelopment commented Dec 5, 2023

Hi! I needed B-spline and Gaussian for another project and implemented them myself there. Since others might also find these filters useful, I wanted to make a PR to add them to the project. I might add more in the future too, but no promises.

Changes:

  • Add B-spline cubic interpolation. Coefficients come from this Wikipedia article.
  • Add Gaussian filter. I basically just copied the implementation from the image crate (here and here).

Since the Type enum is not #[non_exhaustive], this is a breaking change.


Related to #12.

@kornelski kornelski merged commit dc7ad73 into PistonDevelopers:master Dec 5, 2023
@kornelski
Copy link
Collaborator

Thanks!

@RunDevelopment RunDevelopment deleted the bspline-and-gauss branch December 5, 2023 11:46
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.

2 participants