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.10.tar.gz
(31.4 kB
view details)
Built Distribution
chunky3d-0.1.10-py3-none-any.whl
(27.2 kB
view details)
File details
Details for the file chunky3d-0.1.10.tar.gz
.
File metadata
- Download URL: chunky3d-0.1.10.tar.gz
- Upload date:
- Size: 31.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bca0f66cdefa578d28817677e070c2ce310b963355b4fe4aa628b55accb45bbc |
|
MD5 | bf36fec5af47e8c9ac8dae80a26805e1 |
|
BLAKE2b-256 | 38c89df6a2418ab8e50ad37779e0e5ef6e8b5cc1651cccb107d59057282fbad9 |
File details
Details for the file chunky3d-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: chunky3d-0.1.10-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25b095c5e872b908b06406e0b3e5d4b3ac298a158267754d96671e009cb24f5d |
|
MD5 | 74d8fe95be4c7fd1fe4e22d44c5bcd46 |
|
BLAKE2b-256 | 3a2ffca6dd06b78df0af85024be40cdc02ddd3ac5cb9ceaa2d66f9a8ece086fe |