Skip to content

An image resampling, quantization, and filter library for Processing

License

Notifications You must be signed in to change notification settings

Rachmanin0xFF/sampleutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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. First release should be out soon.

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