Make Vaa3D functions available for high-performance python computation.
Project description
Vaa3D in Python Made Easy
Python library for Vaa3D functions.
Installation
$ pip install v3d-py-helper
By cloning the repo and test the Cyhton usages:
$ python setup.py build_ext --inplace
Usage
Loading Vaa3D format data
from v3dpy.loaders import Raw, PBD
raw = Raw()
img = raw.load('path.v3draw')
raw.save('path.v3draw', img)
pbd = PBD()
img = pbd.load('path.v3dpbd')
pbd.save('path.v3dpbd', img)
Loading TeraFly format data
Currently only support Tiff 3D tiles.
from v3dpy.terafly import TeraflyInterface
import numpy as np
t = TeraflyInterface('teraconvert_path')
x, y, z, c = t.get_dim()
# center block
size = np.array(t.get_dim()[:3])
half_block_size = np.array([128, 128, 64]) // 2
start = size // 2 - half_block_size
end = size // 2 + half_block_size - 1
# 4D image, indexed by c, z, y, x
img = t.get_sub_volume(start[0], end[0], start[1], end[1], start[2], end[2])
Useful Links
Github project: https://github.com/SEU-ALLEN-codebase/v3d-py-helper
Vaa3D source: https://github.com/Vaa3D/v3d_external
Documentation: https://SEU-ALLEN-codebase.github.io/v3d-py-helper
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
v3d-py-helper-0.2.17.tar.gz
(2.4 MB
view hashes)
Built Distributions
Close
Hashes for v3d_py_helper-0.2.17-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d2eedbbbcd38e21e193773c6a25c0f04bbe2f9cf635931dc5dc82ed87c70b97 |
|
MD5 | 62eb1f6a9334ee4918368476d1225d71 |
|
BLAKE2b-256 | 35b95a0105eed760098550a57e38256c3c846831bfd4d134d353b4e13d90a05d |
Close
Hashes for v3d_py_helper-0.2.17-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cce2e5f4061fe5ca294576ab779f99336b3941c947173a667ed35329d793c17c |
|
MD5 | 5b02a6015043286eee356785fe32a1b6 |
|
BLAKE2b-256 | 83731d18f080788207d53e8a6124bae22d5015aa9fe86a403bbcbc2ded837837 |