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.6.tar.gz
(29.6 kB
view details)
Built Distribution
chunky3d-0.1.6-py3-none-any.whl
(27.1 kB
view details)
File details
Details for the file chunky3d-0.1.6.tar.gz
.
File metadata
- Download URL: chunky3d-0.1.6.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 361cce74700e36879480ab6bf0ae5740e067b0e755d1c9cea3d0553cb40b3df4 |
|
MD5 | 0a3de33abeaa083b3f56e0bc332ad0a9 |
|
BLAKE2b-256 | 7f7a39704fbb94bb8ebcdcf0562c813b4ca39d6a5c96c7a6c0eba57fa01a489d |
File details
Details for the file chunky3d-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: chunky3d-0.1.6-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 302d2c8db489e12395615d15ea5edbf2e510abd09db1c838e9db9dc67e93de35 |
|
MD5 | ef3931dc55f645fd4333e9fe33e6893c |
|
BLAKE2b-256 | f56c5c244c6d97a05fbbf6c9e85c78ab7d22bbde92ae46d0689ae1a719a70d45 |