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])
Toubleshooting
On Windows, MS BuildTool >= 16 is required to build the wheel.
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.3.0.tar.gz
(25.4 kB
view hashes)
Built Distributions
Close
Hashes for v3d_py_helper-0.3.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d73bb8be8008bffc0e1740713ca4e4841aa13fd3013bf3e57ca9c3fb03a13bf |
|
MD5 | 73e1fcc6209028c565cdda8f342183d6 |
|
BLAKE2b-256 | 1b8254d70c170abf0757ac135500c97089fb59f73fdf7faa791ec163039ac316 |
Close
Hashes for v3d_py_helper-0.3.0-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4891fcd28f34e4925490a0f7b95976659c5b820a1a63e0c430e9245d9d8ffd69 |
|
MD5 | 43fe9ce6fce548ff4bc633c16f1d7d28 |
|
BLAKE2b-256 | f58c13763726e8142d3bd075a19215aa69c1dc262031d27d1ffd7d014be58724 |
Close
Hashes for v3d_py_helper-0.3.0-cp312-cp312-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fbba434651aba956639fc315b0286a4fc47d37e83117cf3a9c38f95b9b8e56f |
|
MD5 | 1a57fd42d91ba98a5b8f9bc75230716f |
|
BLAKE2b-256 | 9f50d8f9bce16d7c6d6efaee8a40bde70364b69fe7f98cf74611d87661bc2728 |
Close
Hashes for v3d_py_helper-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1217214d382f621c71de938b0d3a5ba4e2d38718d00bc25cecd5a6573356854c |
|
MD5 | 4745ad462ce4151b12e8be704c24cb45 |
|
BLAKE2b-256 | a04014e1856884a5e46ef69657aa11b32ff46e19b0be18dfdc2ee9b39630d1d9 |
Close
Hashes for v3d_py_helper-0.3.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd76a25fecbe7aca32694eecb9dc1798a4a8a453ce73e35946f30d05014b1a90 |
|
MD5 | 668493f9a6ac5d8cb56418b05bb3511a |
|
BLAKE2b-256 | db7777088248f458f9cebd9eefe26020c5465a8dafcd1235707780e1642f7afe |
Close
Hashes for v3d_py_helper-0.3.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29461ff61f157e43a1446ed310f3b512f890b877de7d80ccc4d7f8f89e0c4f32 |
|
MD5 | 0f7def3651ff5f4f032397e1e2ac614d |
|
BLAKE2b-256 | 66d3d8ef9487a513cef0079b702f4e637343fc879566cbba31b922fcb5cd30aa |
Close
Hashes for v3d_py_helper-0.3.0-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c66981f6401ce6ce34e34199428f6dff156ced1bab72d24a52f7a34ced8004 |
|
MD5 | 029c32d48f120167f0ae3bfd71aabd25 |
|
BLAKE2b-256 | 01b2dcc3472add143c9aa38d62167d0777c24695e02dd0067784e294d44ae3f0 |
Close
Hashes for v3d_py_helper-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9ca96bd3e3d197a04338125b00a5f5c23f68964fcfe91a384b8d1b34cfb8865 |
|
MD5 | d0e9a0417e32c6359d27982b43a45ec4 |
|
BLAKE2b-256 | c514d3b2c6c2d5b4bd4670e802ffc97aadd18fbcd2b6c167a4649dfedb799899 |
Close
Hashes for v3d_py_helper-0.3.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a8b6f911b5fb4e425a1e7fafd1f8f6523e799f4797d7c741de8026e56024c8 |
|
MD5 | ca40eec84c6169b916da64434ef153c8 |
|
BLAKE2b-256 | d857affba4b502da12d9d4ecc85973d279f2ae66cd8ebe25a8b6db2ea354f77a |
Close
Hashes for v3d_py_helper-0.3.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 861a0a649e93b7dcc7de8ed8fb20302c264b7a96dbafae3b79cdebc51c85325b |
|
MD5 | 15c822140c38ce9d6ebe0e6d9b976d9d |
|
BLAKE2b-256 | 7a48d0320048cecab237963b9c0e92b1f50378f1cde5e3ac9bd2800baad955f6 |
Close
Hashes for v3d_py_helper-0.3.0-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3da098a182eab9d0c76777f5e5ebd83e2934a06dc2cddbcb41b30f4002eb6108 |
|
MD5 | c114120fd935c23927f82b7097a71613 |
|
BLAKE2b-256 | 62d36709d433833e728a54019d2b4ddc991fa47f5c1df0a681280843dc7eb9c7 |
Close
Hashes for v3d_py_helper-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd14cf03bc8db84699d2e7e0555fefe81c255b017bf32550c48f0fa95b035cb6 |
|
MD5 | 4f79a4c27ef0ed8ea0646bb032973d36 |
|
BLAKE2b-256 | 50beddfc077d8a4add9e69a50c9478b591fbcb130c79e209235b227ca50dfecf |