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.2.tar.gz
(25.9 kB
view details)
Built Distribution
chunky3d-0.1.2-py3-none-any.whl
(25.3 kB
view details)
File details
Details for the file chunky3d-0.1.2.tar.gz
.
File metadata
- Download URL: chunky3d-0.1.2.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0099d131784e0b910b5769a2f77cd77419ba5e47f52ecbc8758331b4b7f98a0 |
|
MD5 | e337651c656844808d181e847e291a46 |
|
BLAKE2b-256 | 0d0c17f78561a7d63c356cf8a643174f4c9f1b34060cf34bca895a3af71e7867 |
File details
Details for the file chunky3d-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: chunky3d-0.1.2-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19fa5a60b366eefb3d749f54d0f733ef3e69e81b59238dfce144e75470a1b35f |
|
MD5 | 628f0cb2973432426893af5ce942142c |
|
BLAKE2b-256 | 18c52e9e5ace5c42dfb2fbda0fe67c3d0c7cc42fe42f23c0ed721a3497a6bbe3 |