Pure JS, client-side, Histogram Matching

Inspired by mapbox/rio-hist (python), this demo showcases pure-JS, client-side, Histogram Matching.

Implementation based on scikit-image (doc and code) which simply relies on numpy bincount, cumsum, interp.

scikit-image and numpy use BSD3 License ([1] and [2]).

BETA:
  • If source image is GeoTIFF, the matched output will be downloadable as GeoTIFF with as much geometadata geotiff.js writeArrayBuffer supports
  • Implemented Matching Histograms in Color Spaces other than RGB (namely HSL, HSV, XYZ, LAB, LCH) based on Qix-/color-convert. Execution ~10x slower for RGB, so used original implementation in that case

SOURCE

TARGET

MATCHED OUTPUT

Settings