kuwahara-filter 0.1.0

Fast Kuwahara filter implementation for artistic image effects
Documentation

Kuwahara Filter

Applies the Kuwahara filter to images for artistic painterly effects.

Build

cargo build --release

Binary: target/release/kf

Usage

# Single radius
./target/release/kf -i input.jpg -r "3"

# Multiple radii
./target/release/kf -i input.jpg -r "2,5"
# Creates: input_kuwahara-r2.png, input_kuwahara-r3.png, input_kuwahara-r4.png, input_kuwahara-r5.png

# Custom output
./target/release/kf -i input.jpg -r "1,3" -o result.png
# Creates: result_r1.png, result_r2.png, result_r3.png

Options

  • -i, --input <PATH>: Input image (required)
  • -o, --output <PATH>: Output path (optional)
  • -r, --radius <RADIUS>: Radius value or range (default: "2")
    • Single: "3"
    • Range: "2,5" (inclusive)

Development

cargo test     # Run tests
cargo bench    # Run benchmarks