Skip to content

Rachmanin0xFF/sampleutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

731fefe · Jan 21, 2025

History

26 Commits
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 25, 2024
Sep 19, 2024
Sep 25, 2024
Sep 25, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Jan 21, 2025
Sep 19, 2024

Repository files navigation

sampleutils is an image resampling, filtering, and utility library for Processing.

Note: This is a WIP; I'm cobbling together this library from various functions and utility scripts I've written over the years.

interpolation example convolution example

Features

Supported

Interpolation/Resampling

  • Nearest-neighbor interpolation (no interpolation)
  • Bilinear interpolation
  • Bicubic interpolation
  • Mitchell-Netravali filters (BC-splines)
  • Lanczos resampling
  • EXX2 upscaling
  • Poisson disk generation
  • Sunflower disk generation

Filters

  • Circular medioid blurring
  • Inversion
  • Kernel filters (convolutions)
  • Bivariate Gaussian blurs

Planned:

Interpolation/Resampling

  • Box filtering
  • Gaussian fitlering
  • Faster convolutions (use frequency space)
  • CNN-based/DLSS-style upscaling (probably beyond project scope)

Filters

  • Unsharp masking / local contrast enhancement
  • Tone mapping
  • Gamut Masking / clipping
  • Dithered curve adjustment
  • Component extraction
  • Saturation/luma/chromaticity, etc.
  • LUT extraction from image pairs

Quantization/Dithering

  • Error diffusion matrix-based methods
  • Blue noise
  • Bayer matrices
  • Feature-aware methods