Content-adaptive image processing using the Adaptive Particle Representation
Project description
pyapr
Documentation can be found here.
Content-adaptive storage and processing of large volumetric microscopy data using the Adaptive Particle Representation (APR).
The APR is an adaptive image representation designed primarily for large 3D fluorescence microscopy datasets. By replacing pixels with particles positioned according to the image content, it enables orders-of-magnitude compression of sparse image data while maintaining image quality. However, unlike most compression formats, the APR can be used directly in a wide range of processing tasks - even on the GPU!
For more detailed information about the APR and its use, see:
- Adaptive particle representation of fluorescence microscopy images (nature communications)
- Parallel Discrete Convolutions on Adaptive Particle Representations of Images (IEEE Transactions on Image Processing)
pyapr is built on top of the C++ library LibAPR using pybind11.
Installation
For Windows 10, OSX, and Linux and Python versions 3.7-3.9 direct installation with OpenMP support should work via pip:
pip install pyapr
Note: Due to the use of OpenMP, it is encouraged to install as part of a virtualenv.
See INSTALL for manual build instructions.
Exclusive features
In addition to providing wrappers for most of the functionality of LibAPR, we provide a number of new features that simplify the generation and handling of the APR. For example:
- Interactive APR conversion (see get_apr_interactive_demo and get_apr_by_block_interactive_demo)
- Interactive APR z-slice viewer (see viewer_demo)
- Interactive APR raycast (maximum intensity projection) viewer (see raycast_demo)
- Interactive lossy compression of particle intensities (see compress_particles_demo)
For further examples see the demo scripts.
Also be sure to check out our (experimental) napari plugin: napari-apr-viewer.
License
pyapr is distributed under the terms of the Apache Software License 2.0.
Issues
If you encounter any problems, please file an issue with a short description.
Contact us
If you have a project or algorithm in which you would like to try using the APR, don't hesitate to get in touch with us. We would be happy to assist you!
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 Distributions
Built Distributions
File details
Details for the file pyapr-1.0.5-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 040c79722f756af8a75b3fde202015f3a5363a67510b1801b029a7f110f54b52 |
|
MD5 | 8d2a3322e39210603d795e0f48b83157 |
|
BLAKE2b-256 | 8f8c9dc184108e2e21264055c7a1d2cda5d838e6970e3dae0fcb66b018ba967f |
File details
Details for the file pyapr-1.0.5-cp310-cp310-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp310-cp310-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75cddfa71aa5247c1055d688e274be54aaaa666138d19f5cdd47fc0dd61f7a88 |
|
MD5 | 02e6217992e27776369b481333bf0198 |
|
BLAKE2b-256 | c6e6a34e676c6a7e550ff6dfc204c98dae86ca26f199cfe709eec2e0c020a2c9 |
File details
Details for the file pyapr-1.0.5-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81150146cfd4fe38d4965ddfac254779110c355a0f10b561f5e298113e9c68ee |
|
MD5 | 7f5a424d8d048b42abf406c4c7ad1585 |
|
BLAKE2b-256 | 83b10c251ad1614af8833ad365bc5b6c005b42a6963f2d199e04c5ff4d924e3c |
File details
Details for the file pyapr-1.0.5-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31409ae33c026ba040e62dd9461e4d90b37d5f746d292858efc16717cd631e9b |
|
MD5 | d4e4e2f661b3b381d30424064e359998 |
|
BLAKE2b-256 | 88c4dfc6fd211ccaa8af5dc1c98e40d8e5484fcd12e4fa1fb5789b44d538445e |
File details
Details for the file pyapr-1.0.5-cp39-cp39-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp39-cp39-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b1d5308b8358e29385686663c969642d95dd484308e968e16de078556d52d6 |
|
MD5 | 317540ef2a2cdc7ba2590cca9a85762b |
|
BLAKE2b-256 | 1207a849e4f0ae1a5f428c5565bd4cfdd1a04ad53f6086730b5740db29c7802b |
File details
Details for the file pyapr-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d568c4dfd575048ae64a0cf63f987622f23e42bde17077ab43abc9084a20236 |
|
MD5 | 2fbfc53d180b5492d9395c182094847e |
|
BLAKE2b-256 | 04bcd3902f000c7a9a7d37295f3c95dbe71de13c68d0dc19e4da07001d16c259 |
File details
Details for the file pyapr-1.0.5-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2def45618bdc38ad061f8a7087c6a5f515064d2e1d28f2815bc54e4f2f168580 |
|
MD5 | 65c97385b452f5324529eb9b491ad12b |
|
BLAKE2b-256 | 590f5fef23ea658f99d5eb0edbfd0d66f7d9a3c7ac82c827f47a6007159dc14d |
File details
Details for the file pyapr-1.0.5-cp38-cp38-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp38-cp38-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63c7fd96cb10ab23797ac04364d03027e88aed2df90ee5a7bd0e4dd9ac5053ed |
|
MD5 | a69a3fe9b643f1f48cfc5bcda2e04bb0 |
|
BLAKE2b-256 | 2da0d7fcfb9d58f4bce7972d33806664f8a36f15bbc2701135b90fdbbb192c04 |
File details
Details for the file pyapr-1.0.5-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 541a125fd59da0e86c5c3f45226f69e16444dfb2004def3aa501a330b6b82011 |
|
MD5 | 818fdf2760277924f8712ef161244919 |
|
BLAKE2b-256 | c0eabbead378b3aa8cd5c12b66e0bf700a87f17439163d7c1ad7fa35b9cdf7d7 |
File details
Details for the file pyapr-1.0.5-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 100e7f9a56b7a290f617e2d595dbf96cc17858f4cd51126f0dfd200a0c809d1a |
|
MD5 | 821bf68e26739b8a7c62dacecee2c866 |
|
BLAKE2b-256 | 8165ddefbc4f4b94c2b780d62aad7bdcdf1b98c89ff6cc0a39b3f885c943a6f5 |
File details
Details for the file pyapr-1.0.5-cp37-cp37m-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp37-cp37m-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.7m, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fe511ac37d8344face944ea675b03b2145db0ac23a9114ec6dfdc9f61e5df32 |
|
MD5 | e8dced8d92abef58fb57a91f625e068f |
|
BLAKE2b-256 | b6dcfe7d62c8cc40dedee9c15bddde9a05444d785a92df9be291da93f69377c3 |
File details
Details for the file pyapr-1.0.5-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d029953f1553c663d80e3a7c6b85014e745b198df4b4793b600cfe79e08811d |
|
MD5 | aafc0b257ec689c460a2902772aeaf27 |
|
BLAKE2b-256 | 16d869e48dae89eee13b914646d412b7e55e5ee2c14b8fd0349f697466830299 |
File details
Details for the file pyapr-1.0.5-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6469f4a74d532686e03577f672961236cd107cf9e1549791bae90fb422aa0cff |
|
MD5 | 17e6be67482bd51e065a684d0331cc79 |
|
BLAKE2b-256 | 9c4b1af3da8cffe539d3990b9fe51ce55fb60a2a295055566b9fbc5dc64e5ef9 |
File details
Details for the file pyapr-1.0.5-cp36-cp36m-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp36-cp36m-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.6m, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a559751391b2c52076c8ac92274bf87b5c6c56bac4920b9990eded1797e639 |
|
MD5 | 816aef6a8573822f7a8a56f01ea8c8a0 |
|
BLAKE2b-256 | b5162ad10a07f7a73eb1e8887e45a547de4748b3d04e4e349ea0b1ea880b49ac |
File details
Details for the file pyapr-1.0.5-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pyapr-1.0.5-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 686e9b28411ade1d06e4373d6afab9960aa28d768d89e78bcc70e6255a3142da |
|
MD5 | 5c4516da6a5334c011e97175c71def0e |
|
BLAKE2b-256 | dd46753982e931a3d3c8a1558862ec1a1f6683380c94968b79bb5cf62c8c795e |