Visualize 3D numpy arrays in the browser.
Project description
microviewer
Multiplatform 3D numpy image browser based viewer.
from microviewer import view, hyperview
view(numpy_image) # for gray and color images
view(numpy_image, seg=True) # for segmentation labels
view(numpy_image, seg=True, port=8082)
hyperview(image, labels) # interactive overlay
uview image.npy.gz # view as image
uview labels.npy.gz --seg # view as segmentation
Visualize 3D numpy arrays in your browser without difficult installation procedures or reformatting your data. The code is CPU based and the image is uncompressed in memory. You're limited to images that are at most 2^31 bytes large (~2.1 GB) due to browser limitations.
Supports
- 8-bit grayscale 3D images
- color images (including 3 channel 3D images)
- floating point images
- boolean images
- segmentation labels
- .npy or .nii format (must install nibabel first)
Installation
pip install microviewer
History
This microviewer package has been a part of CloudVolume since 2018, but is now broken out into its own package for more flexible wider use. Microviewer uses a modified version of https://github.com/seung-lab/data-cube-x/ (2016) to represent the array in Javascript.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
microviewer-1.1.0.tar.gz
(256.8 kB
view hashes)
Built Distribution
Close
Hashes for microviewer-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d4f984da23d18655f29225f0ccb4424d1c12d627cef70d2bf68c073dc72a1e9 |
|
MD5 | 106eb9a448648d7f928d573cdea0ed41 |
|
BLAKE2b-256 | 3ba28c0bfd398be7e17cde064452a0db6d29948e58d81b98522876daba20ab7b |