Skip to main content

vnumpy : vision numpy arrays

Project description

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

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

vnumpy-0.1.6.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vnumpy-0.1.6-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file vnumpy-0.1.6.tar.gz.

File metadata

  • Download URL: vnumpy-0.1.6.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for vnumpy-0.1.6.tar.gz
Algorithm Hash digest
SHA256 8bc515d92dac7ae0e8ba2ab8439e5dc6e0995a75930cf1f24969a3879d7ed3ca
MD5 bd47df3fa87ad17b0969565f77a7df34
BLAKE2b-256 daa91e750a894c2c5c7e75ddd844fb985392009e109ba70018fce5027e5975b4

See more details on using hashes here.

File details

Details for the file vnumpy-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: vnumpy-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for vnumpy-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4a0a3cb27096f20a1bbe2938f9117a51bdbd06dec2b73e6c271f22d0cba89929
MD5 fd98084d4f04d8d8926ff5aa56468083
BLAKE2b-256 30b89c5aff9fb543d95e078aa906b5092fd6191ea489503ed6334679fba426c6

See more details on using hashes here.

Supported by

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