Skip to main content

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

Build Status

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 using multiprocessing
  • multiprocessing-based acceleration in most of existing sparse_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 via chunky3d.k3d_connector.get_k3d_object()

Project details


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.15.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

chunky3d-0.1.15-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file chunky3d-0.1.15.tar.gz.

File metadata

  • Download URL: chunky3d-0.1.15.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for chunky3d-0.1.15.tar.gz
Algorithm Hash digest
SHA256 b7a6a833b9d9114c94efc2a8d105e632f17dfd74bc4df23b4039e3c943b7b3d5
MD5 cd34b27ccdf1ca81215b72da577d7ce0
BLAKE2b-256 e61bbcbcb911d367b46e5241d85bf0a8b451e84829297b14407b4a6d24c87265

See more details on using hashes here.

File details

Details for the file chunky3d-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: chunky3d-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for chunky3d-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 d2e6763e5de243483b6faebad58a6af008a0a557a32497980a5a385703455dd6
MD5 91d98277ab452fe5af2fb7610f1d647e
BLAKE2b-256 5b6d14fbcf9bd6ecb3f2a21023296f3b3e3bb462c4309673ad5c8e107a11e5c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page