Neuroglancer compressed_segmentation codec.
Project description
NOTE: This repository is the PyPI distribution repo but is based on work done by Jeremy Maitin-Shepard (Google), Stephen Plaza (Janelia Research Campus), and William Silversmith (Princeton) here: https://github.com/janelia-flyem/compressedseg
# Compress Seg [![Picture](https://raw.github.com/janelia-flyem/janelia-flyem.github.com/master/images/HHMI_Janelia_Color_Alternate_180x40.png)](http://www.janelia.org)
## Library for compressing and decompressing image segmentation (adapted from [neuroglancer](https://github.com/google/neuroglancer))
This library contains routined to decompress and compress segmentation and to manipulate compressed segmentation data defined by the [neuroglancer project](https://github.com/google/neuroglancer/blob/master/src/neuroglancer/sliceview/compressed_segmentation/README.md).
### Features
* Compression and decompression
* (TBD) Interface to relabel and manipulate segmentation from the compressed data
* C++, Python, and Go interface (see original repo for Golang)
### C++ Compilation
Compiling as a shared library. Feel free to subsititute e.g. clang for the C++ compiler.
```bash
g++ -std=c++11 -O3 -fPIC -shared -I./include src/compress_segmentation.cc src/decompress_segmentation.cc -o compress_segmentation.so
```
### Python Installation
_Requires a C++ compiler such as g++ or clang._
Works with both Python 2 and 3. Encodes from / decodes to 3D or 4D numpy ndarrays.
```bash
$ pip install -r requirements.txt
$ python setup.py install
$ python
>>> import compressed_segmentation as cseg
>>> help(cseg)
```
### License
Please see the licenses in this repo.
# Compress Seg [![Picture](https://raw.github.com/janelia-flyem/janelia-flyem.github.com/master/images/HHMI_Janelia_Color_Alternate_180x40.png)](http://www.janelia.org)
## Library for compressing and decompressing image segmentation (adapted from [neuroglancer](https://github.com/google/neuroglancer))
This library contains routined to decompress and compress segmentation and to manipulate compressed segmentation data defined by the [neuroglancer project](https://github.com/google/neuroglancer/blob/master/src/neuroglancer/sliceview/compressed_segmentation/README.md).
### Features
* Compression and decompression
* (TBD) Interface to relabel and manipulate segmentation from the compressed data
* C++, Python, and Go interface (see original repo for Golang)
### C++ Compilation
Compiling as a shared library. Feel free to subsititute e.g. clang for the C++ compiler.
```bash
g++ -std=c++11 -O3 -fPIC -shared -I./include src/compress_segmentation.cc src/decompress_segmentation.cc -o compress_segmentation.so
```
### Python Installation
_Requires a C++ compiler such as g++ or clang._
Works with both Python 2 and 3. Encodes from / decodes to 3D or 4D numpy ndarrays.
```bash
$ pip install -r requirements.txt
$ python setup.py install
$ python
>>> import compressed_segmentation as cseg
>>> help(cseg)
```
### License
Please see the licenses in this repo.
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
compressed_segmentation-1.0.0.tar.gz
(149.3 kB
view hashes)
Built Distributions
Close
Hashes for compressed_segmentation-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c64519beda567b791d09a4730a5aef72c8e584208aa4e026135a4b170ebc6515 |
|
MD5 | 7d465800ea92e7d4323c27b10350ba05 |
|
BLAKE2b-256 | 0e188abb9efecce6f2aa72b7f0989744673d4db2e94c0c2ca8d5836dd14ae67f |
Close
Hashes for compressed_segmentation-1.0.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e763d721a575b4a95f78adc139252ea1847fa4d2bfdd200e50107f61da8db432 |
|
MD5 | 1e2d36167fa9ad49c707c3f33e4f5ede |
|
BLAKE2b-256 | 0441d5073243aeebdd6d04ea78ab6b8573c748c14c88936ff9e193295668c3d4 |
Close
Hashes for compressed_segmentation-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad11e36655c7c4070cf96fea717b46d784aa2532cbddb0834dbc94d23280dac6 |
|
MD5 | 11222202682c8cf8317cd432339e7fcc |
|
BLAKE2b-256 | e3ada345d5f945c3e8b8d8306c0bad611ca21c862a90080a495b2c182faf16d2 |
Close
Hashes for compressed_segmentation-1.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6377a5f765d027d62957b3a72e8ab943c289f8a317806897ffde96af2dc0d09 |
|
MD5 | ca8f066d423c8cc4971b6fcf967c0dc5 |
|
BLAKE2b-256 | b7707f341f21730541e36ad4c4fa7dfd440fd18702e3fd86a174ca751d0de9c6 |
Close
Hashes for compressed_segmentation-1.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 928aa2722945ea1838fba4769f17f37de88e1e2db2e2456d089fd6e84e5c96aa |
|
MD5 | a09f5aa72e27dba6195c27fdca132cfe |
|
BLAKE2b-256 | f0c4765ed9bf5eeb782405b152b6a3e7a5618a26a213d7d038f1175b0baa2760 |
Close
Hashes for compressed_segmentation-1.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36d4ff3f2c5378643d1f05cfdef3fea94a1ed998df2068dd4a78db2cbcaaf113 |
|
MD5 | f2bec641256e62e278ea5c254ed1ab47 |
|
BLAKE2b-256 | e56681b3a5ebc62d1723c3c67ab28793cedd187725459182e8eb6668ad0e6e94 |
Close
Hashes for compressed_segmentation-1.0.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6ab491d226608e981fb9884e5773c084a3fdcb4f396a9d33c9425e371b505ce |
|
MD5 | f711f17d6657bba9db5e88eeacf3d3a3 |
|
BLAKE2b-256 | 09b0c480dae2bac809d07d7ad202cd80951fcdfc9ec6b8974441aff19c3b8f5c |
Close
Hashes for compressed_segmentation-1.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c0ac120652f6c3aab4ca7f449f976db572da194e8b72dffeba1f78614374f9 |
|
MD5 | 4a7672bef0b47e31a14b2ee2fec29a44 |
|
BLAKE2b-256 | 6e522db2616471149fa627339aa1b648f465910f9b5a4d84a38ba0cc002e32d2 |
Close
Hashes for compressed_segmentation-1.0.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89cadf630d3e709b677961727af3e2d23b314f00dd0d9702afdd83e5a427cc55 |
|
MD5 | f8e9a7fd4d1a7549cacfe1e786ab1cc7 |
|
BLAKE2b-256 | f418724bfb1800b5a669438c9f535a2dd7e7cb56e7a32808c864dd297d49b146 |
Close
Hashes for compressed_segmentation-1.0.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea4d1034bd22d4ddf360794a4ef7b09dd01886096e8ff87308b5c6ef1c0576b2 |
|
MD5 | 03e2e8af06af0972ef9a7d9e88625c8d |
|
BLAKE2b-256 | aeab3098697a5332ad40a8a5db581a960eb99e2efb32fe5342798969a5a42648 |
Close
Hashes for compressed_segmentation-1.0.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b02c0cb61e7d6d51b5247bb34b7a4ea97b34b027e1fe0c819b62206debdf036b |
|
MD5 | e5917d91740ea8ecbf5e8b48d34a1011 |
|
BLAKE2b-256 | 80a5493d8219ee4efb81ab43e6169bf9f745608a7939a402f6187fdb136de671 |
Close
Hashes for compressed_segmentation-1.0.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 116981fd65f578a32bb85c18137cc5731e45246a2af90519e25c49b0e26888c6 |
|
MD5 | 524fd1475c288659cb62de8f7030e405 |
|
BLAKE2b-256 | 485960bae30f244a6b7b742442491667d2ad402764f755870eb7e0d978ca64ed |
Close
Hashes for compressed_segmentation-1.0.0-cp27-cp27m-macosx_10_14_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e6d21eeb111cfa7275e12d550886a7a2b9eedd6c77f552746165feeec15f13d |
|
MD5 | d20b746cb6dce612a016ca4a08dd8676 |
|
BLAKE2b-256 | d92ab279746588a4e6ecaa80ab2279b30a3c84ef522713013caf53b029d8d81d |