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.
Newer setuptools seem to be buggy.
Once successfully installed, the package can still report import error, which suggests some of the runtime libs, especially those related with compression, are missing in you machine.
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
Contact
Main Developer: Zuohan Zhao
My GitHub Page: https://github.com/zzhmark
Email: zzhmark@126.com
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
Built Distributions
Hashes for v3d_py_helper-0.4.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85db3cd735abdc709c4c00051bd9cefddf5152b9428ef98114237cf51b47cdaf |
|
MD5 | 4ca1f50809aec8b5ea4c1cb124e88ff8 |
|
BLAKE2b-256 | 0d9c8be2942ed7d740a7686ae8cfbc0bc19a56226a9a7f9040ee968be062412f |
Hashes for v3d_py_helper-0.4.1-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4953b2a07c3d926ce898bd82061b13ea4e61fe1c887eee0831736cbc6f7e7a66 |
|
MD5 | e6f678ea546859c6af205ee2bbf3197c |
|
BLAKE2b-256 | 4475b3722d1fc1e235e11158e641e53855762b0bf64f24a93d7702dae9e6236f |
Hashes for v3d_py_helper-0.4.1-cp312-cp312-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b36c7511cabb5185dc0ddcf73e18c613801b115f4158b7bbfc4a93ff33de403c |
|
MD5 | f49968207a081e388a511e23152a0413 |
|
BLAKE2b-256 | d7d14a31497fdfcda56b866973cd3b85f42294a4e15f069b7d1286be1fdc2f0e |
Hashes for v3d_py_helper-0.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42bfb94c22bef8e7593bfbf16296307c5c078b207185166195560e0747a03286 |
|
MD5 | c975f90bc2f63f1da00fd3e62898f01d |
|
BLAKE2b-256 | 84850bf19e7462202828dfd57762da53b35626aecaceb21d5b9a8f84feff5f87 |
Hashes for v3d_py_helper-0.4.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8ad99d4f102328b516d8bc1d27d83c31b5c1716ff32e1cca44f175664bcd75 |
|
MD5 | 41181e8d649934595dfa75bce3d42a32 |
|
BLAKE2b-256 | 9034da722b294fed86210fd5f0b8e7b5f3925732f76863f300a7645cfa8d8cb5 |
Hashes for v3d_py_helper-0.4.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd7ca58ba201c68c9f9e7147cde598ab4acfd6685c7d0874c79e7cce158017f1 |
|
MD5 | e7b1bb54963e82d7f392ff708883cd6e |
|
BLAKE2b-256 | b0c469f13c6f8ff096c333909e58a069858e9ae613bdda25fd4bfb30d990e944 |
Hashes for v3d_py_helper-0.4.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5fb6ab85a00164a78a13ed643f27355833f220b39d8465f0bf3971e4658f6ae |
|
MD5 | b8611a6868e5b243264b8b0f8c5bfece |
|
BLAKE2b-256 | 72783ad79be7df0c6bb43df8a30508d6203091354e9879784b034cd8ee7f1b69 |
Hashes for v3d_py_helper-0.4.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3657b79113ae39adacbb656ad2a2eb768a3e51e74247e149d8575dfc79d1607 |
|
MD5 | 689a28d33ba499f8fb536a322216c39e |
|
BLAKE2b-256 | f7d023b984d292e36fdff485af0956c0f697ba817d27d826f9d9a8442b335c9f |
Hashes for v3d_py_helper-0.4.1-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e5899f308b6c25e810d918b2bf356e4846d909175ccf80549567072a7d6b487 |
|
MD5 | fe16446e511d19d5aa29714c8402a999 |
|
BLAKE2b-256 | d305b4dd910be3b1a040fa0e96e6bc9a2eebd484a04d0878b1b270e86b59d7a4 |
Hashes for v3d_py_helper-0.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 099638980b054d6bff25d17b8e13faa7e50df584ea461b5fc4c03d5c6fde95fa |
|
MD5 | ba1ee9a5239ac75d973b294193571db4 |
|
BLAKE2b-256 | 2b32b0573f3bb9c0887cf02278038eae9ae45ebfc1e1e916944904297dd2e007 |
Hashes for v3d_py_helper-0.4.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7a04eeec7104b90ad0a3129e5269ab224054bf5dda34733da112297af9fc2a1 |
|
MD5 | d423d96cf010ce72ba2ea35282ba333e |
|
BLAKE2b-256 | 60423f26707c4ee0963a00f4d5aaa7750a39a95d45c0bc1249849262cba74a43 |
Hashes for v3d_py_helper-0.4.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 995fae80a8e46e3a9048174d312418befb4d283af1ae83ba7bc977c8ed4b59de |
|
MD5 | b012e41e672c25d0380d7da8ccd3ca9a |
|
BLAKE2b-256 | c6ded7da6d5040d6aa412f903c62b40a52ea06b545aa60b93895f7ccec38ea2c |
Hashes for v3d_py_helper-0.4.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fff30612e594960f1e1b7acbb38af53e74ee0003ba79e18fb4712a96c0c2be1d |
|
MD5 | 9023f1ddd24ca0c3495c679bdb42cced |
|
BLAKE2b-256 | b1221ff821f5188d7dbdbe3540bee77c5f9e6a23fb831b0683e9dae551bb578c |
Hashes for v3d_py_helper-0.4.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9961058bf36e766d7bcd8f025180c98e1e731d29956972872920a4e47a762d74 |
|
MD5 | 51d0c8b257ee992f61691df9f648c04a |
|
BLAKE2b-256 | bf2d7693a53f1fedf5653206fbdbb363904dab3ca40a0c2585037083df433f9f |
Hashes for v3d_py_helper-0.4.1-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2ce6c66ca48ebdd65fd494b9978e1e487c4b52e18d9fc7c30b86bc98eba1064 |
|
MD5 | bfd938f0914dd9a4fe50c63a480b37da |
|
BLAKE2b-256 | eeb7ce1f33725591f2d7f47de1f455dba7201d6eb3f57d2489fe9df16b2ece10 |
Hashes for v3d_py_helper-0.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ef31ca81c999b9904018c8d5bfe6ff0a592df0c317c7673332923aa81aa4518 |
|
MD5 | 86d245faab77477dd3084c1c4fe13f24 |
|
BLAKE2b-256 | 8da5721ae57af4be26572e9df3fbaec7aa0e4185d69f72783c11466e4cd0c481 |
Hashes for v3d_py_helper-0.4.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e45a0c5da53709a813f3d1a393cea457d0e4f50b2218780e96a9dac5f3a5b6b4 |
|
MD5 | ac5141391aacf43079eb9edc9c03696a |
|
BLAKE2b-256 | 6604eddc1bf1931bdf7da1025523335f77fda02bf6c8fd6e7acdba41f4bdc29d |
Hashes for v3d_py_helper-0.4.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11ee96c538160267729f63f1c78dc5938c13e9f973dddc2e3f8fea9bf9962c8b |
|
MD5 | 48a7e958567edeedd9f75ae9496b25d0 |
|
BLAKE2b-256 | f0bbdba326f306c207abc63e45989ed8744e55df3528a8206f6f22df44ba811d |