This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |