butter2d

Butterworth filter for spatial frequencies on images. Includes a WASM demo

https://github.com/altunenes/butter2d

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.4%) to scientific vocabulary

Keywords

butterworth fourier-analysis medical-image-processing psychophysics spatial-frequency vision
Last synced: 6 months ago · JSON representation ·

Repository

Butterworth filter for spatial frequencies on images. Includes a WASM demo

Basic Info
Statistics
  • Stars: 7
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 2
Topics
butterworth fourier-analysis medical-image-processing psychophysics spatial-frequency vision
Created about 2 years ago · Last pushed 9 months ago
Metadata Files
Readme Funding License Citation

README.md

Rust crates.io DOI Deploy WASM

butter2d

Pure Rust Implementation of the Butterworth Filter

✨ Live WASM Demo

Try the interactive Butterworth filter demo directly in your browser, built with WebAssembly:

➡️ Live Demo Link ⬅️

Overview

The Butterworth filter offers a more robust method for applying spatial frequency filters to images compared to traditional FFT/IFFT-based methods. Filters with sharp cutoffs can often lead to the Gibbs phenomenon, where undesirable ringing artifacts appear near edges in the image. This issue is particularly problematic in applications such as EEG experiments (particularly low/mid visual ones that affect P100 amplitudes in the visual cortex) and other scenarios involving low-frequency signals.

Usage

rust cargo add butter2d

```rust use image::{GrayImage, open}; use butter2d::butterworth;

fn main() { let img = open("path/to/your/image.png").expect("Failed to open image").toluma8(); let cutofffrequencyratio = 0.1; let highpass = true; let order = 2.0; let squaredbutterworth = false; let npad = 0; let filteredimg = butterworth( &img, cutofffrequencyratio, highpass, order, squaredbutterworth, npad ); filteredimg.save("path/to/save/filteredimage.png").expect("Failed to save filtered image"); } ```

Owner

  • Name: Enes
  • Login: altunenes
  • Kind: user

I like science, computers, and budgies :-)

Citation (CITATION.cff)

cff-version: 1.1.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Altun
  given-names: Enes
orcid: https://orcid.org/0000-0002-6478-6909
title:altunenes/butter2d: 1.0.1
version: v1.0.1
date-released: 2024-04-21

GitHub Events

Total
  • Issues event: 1
  • Watch event: 2
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 27
  • Pull request event: 2
  • Create event: 1
Last Year
  • Issues event: 1
  • Watch event: 2
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 27
  • Pull request event: 2
  • Create event: 1

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 88
  • Total Committers: 3
  • Avg Commits per committer: 29.333
  • Development Distribution Score (DDS): 0.023
Past Year
  • Commits: 28
  • Committers: 2
  • Avg Commits per committer: 14.0
  • Development Distribution Score (DDS): 0.036
Top Committers
Name Email Commits
altunenes e****2@g****m 86
Gábor Szabó g****r@s****m 1
GitHub Actions a****s@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 3
  • Average time to close issues: about 1 year
  • Average time to close pull requests: about 1 hour
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 8 minutes
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • altunenes (1)
Pull Request Authors
  • altunenes (3)
  • szabgab (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cargo 9,716 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 1
crates.io: butter2d

Butterworth filter for image processing.

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 9,716 Total
Rankings
Dependent repos count: 29.5%
Dependent packages count: 34.8%
Average: 53.6%
Downloads: 96.4%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/rust.yml actions
  • actions/checkout v3 composite
Cargo.toml cargo