Vnumpy: Vision numpy arrays
WARNING: This is a simple test version (now it Only can run IN windows OS)!
Usage
If you have a 3dim numpy arry, And if this data represents a volumetric object. (CT、OCT or other 3dscan date)
The Vulkan portion of the code will not be open-sourced for now. We use dll。
your gpu should use vulkan
For example:
import numpy as np
from vnumpy.v3d import npshow2
from batchgenerators.utilities.file_and_folder_operations import join
from nnunetv2.imageio.simpleitk_reader_writer import SimpleITKIO
from nnunetv2.inference.predict_from_raw_data import nnUNetPredictor
import nrrd
image_file=r"./input-volume0.nrrd"
image_file2=r"./output-segmentation.nrrd"
print(f"Loading image from {image_file}")
imgs, prop = SimpleITKIO().read_images([image_file])
imgs2, prop2 = SimpleITKIO().read_images([image_file2])
npshow2(imgs[0],imgs2[0])
https://github.com/user-attachments/assets/64e736fb-df23-4c56-9836-ce44dab4afb7
Installation
Install vnumpy from PyPi:
pip install vnumpy
Acknowledgments
This is a Test version now
Release files for vnumpy 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vnumpy-0.1.6.tar.gz | 1.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vnumpy-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.1 MB
Release files / vnumpy-0.1.6.tar.gz
| Download URL | vnumpy-0.1.6.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bc515d92dac7ae0e8ba2ab8439e5dc6e0995a75930cf1f24969a3879d7ed3ca
|
|
BLAKE2b-256 checksum How to use checksums |
daa91e750a894c2c5c7e75ddd844fb985392009e109ba70018fce5027e5975b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / vnumpy-0.1.6-py3-none-any.whl
| Download URL | vnumpy-0.1.6-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a0a3cb27096f20a1bbe2938f9117a51bdbd06dec2b73e6c271f22d0cba89929
|
|
BLAKE2b-256 checksum How to use checksums |
30b89c5aff9fb543d95e078aa906b5092fd6191ea489503ed6334679fba426c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|