Skip to content

Instantly share code, notes, and snippets.

View bentaculum's full-sized avatar

Benjamin Gallusser bentaculum

  • Lausanne, Switzerland
View GitHub Profile
"""
Adapted from
https://github.com/funkey/gunpowder/blob/master/gunpowder/nodes/hdf5like_write_base.py
and https://github.com/funkey/gunpowder/blob/master/gunpowder/nodes/zarr_write.py .
"""
import logging
import os
import zarr
import numcodecs
@bentaculum
bentaculum / adapthist.py
Last active September 11, 2020 18:35
scikit-image's CLAHE implementation without global min/max dependency, returns uint8
# Adapted from
# https://github.com/funkelab/scikit-image/blob/fix_clahe/skimage/exposure/_adapthist.py
"""
Adapted code from "Contrast Limited Adaptive Histogram Equalization" by Karel
Zuiderveld <karel@cv.ruu.nl>, Graphics Gems IV, Academic Press, 1994.
http://tog.acm.org/resources/GraphicsGems/
The Graphics Gems code is copyright-protected. In other words, you cannot