A 3D array-like NumPy-based data structure for large sparsely-populated volumes
Project description
chunky3d
A 3D array-like NumPy-based data structure for large sparsely-populated volumes
Build
Introduction
This library provides a data structure, Sparse
, which represents 3D volumetric data
and supports a subset of np.ndarray
features.
Example
>>> import numpy as np
>>> from chunky3d import Sparse
>>> s = Sparse(shape=(64, 64, 64))
>>> s[0, 0, 0]
0
>>> s.dtype
numpy.float64
>>> s.nchunks
8
>>> s.nchunks_initialized
0
>>> s[1, 2, 3] = 3
>>> s.nchunks_initialized
1
>>> s[:2, 2, 3:5]
array([[0., 0.],
[3., 0.]])
Features
chunky3d.sparse_func
- a collection of functions for analyzing chunked arrays, including morphological operations (opening, closing), thinning, connected components- Fast load and save using
msgpack
- Operations on arrays using
.run()
, with possible acceleration usingmultiprocessing
multiprocessing
-based acceleration in most of existingsparse_func
- Accelerated lookup using
numba
- Interpolation (point probe)
- Origin and spacing: representing 3D space with non-uniform spacing for different axes
- Easy visualization of arrays with
dtype=np.uint8
viachunky3d.k3d_connector.get_k3d_object()
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
chunky3d-0.1.13.tar.gz
(30.6 kB
view details)
Built Distribution
chunky3d-0.1.13-py3-none-any.whl
(32.8 kB
view details)
File details
Details for the file chunky3d-0.1.13.tar.gz
.
File metadata
- Download URL: chunky3d-0.1.13.tar.gz
- Upload date:
- Size: 30.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d27c88916f844b5608c9613278ea07c622e6a6980bfb59f142079b6b5d7cdf06 |
|
MD5 | 8a5e5223d0d122fe9bf5d5ed302c608e |
|
BLAKE2b-256 | cd09902d5d7ddbd4d9b4bfcf80a49f5f983a1b9f04d423aebf13fc94abe399e5 |
File details
Details for the file chunky3d-0.1.13-py3-none-any.whl
.
File metadata
- Download URL: chunky3d-0.1.13-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a0a29ce04a5fb8fcccbd424d3f5c9491bb29ecaaae5d90212126e69695535e9 |
|
MD5 | c309edaaff1dfd562bb6107f8463be29 |
|
BLAKE2b-256 | 9c8081415334b9bdd05ae9384c58a33d7d661edccb79952dfeca57e1d576210c |