JPEG-2000 Compression for zarr chunks
Project description
zarr-jpeg2k
About
JPEG-2000 encoded and decoder for of Zarr chunks using imagecodecs. Works with 2D and interleaved RGB data.
Usage
from zarr_jpeg2k import jpeg2k
import numpy as np
import zarr
codec = jpeg2k(level=50)
data = np.arange(100000000, dtype='uint8').reshape(10000, 10000)
# without zarr
encoded = codec.encode(data)
decoded = codec.decode(encoded)
# with zarr
z = zarr.array(data, chunks=(1000, 1000), compressor=codec)
References
This repo is heavily influenced by zarr-jpeg which uses JPEG encoding to compress chunks of data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zarr-jpeg2k-0.1.0rc3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for zarr_jpeg2k-0.1.0rc3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7fa813b4ce5aaee65a1197d9426a09c3157ef8b3f7ff11988593f566753d624 |
|
MD5 | 608ad43799c9473f3d1fcadb15d1d32a |
|
BLAKE2b-256 | 44192c4154ab5fee23255c1ab52ea67ac20c0e8e306ea46d5a513d4c19f63256 |