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

Uploaded Source

Built Distribution

chunky3d-0.1.11-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chunky3d-0.1.11.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for chunky3d-0.1.11.tar.gz
Algorithm Hash digest
SHA256 1b0830126ba390430766a7d6e1376ac7d9183110ded6fd69628072a60a0ed4aa
MD5 f003a89ee07073bb2ee647c8827eaa46
BLAKE2b-256 cdea9e3a26d1e3e9326e834f232cae4cd17ed46e1922715cf6010f42d664b164

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chunky3d-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for chunky3d-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 34e715f18dcf68c169e3de36812d7c0f245fe3b164d1661aa720d62ad0e9e5e8
MD5 2629b223299aae7358bc44cb23208b9a
BLAKE2b-256 8c23adbcb65723828aaa36e5b745d18f56080faadf14485ab8c8c2e7380e821a

See more details on using hashes here.

Supported by

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