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
uview image.npy.gz labels.npy.gz # view image w/ overlay
uview image.npy.gz --paint # view image w/ blank overlay
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.
Features
- 3 axis visualization of 3D images.
- Grayscale images with segmentation overlay.
- Segmentation selection with brush tools.
- Direct voxel painting.
- Save segmentation as .npy or .ckl, an advanced compresssion format.
- Undo/Redo
Supports
- 8-bit grayscale 3D images
- color images (including 3 channel 3D images)
- floating point images
- boolean images
- segmentation labels
- .npy, .ckl, or .nii format
For .ckl and .nii formats, you must separately install crackle-codec and nibabel respectively.
Installation
pip install "microviewer[all_formats]"
all_formats will install all supported formats for the CLI. By default, only .npy filesare supported.
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, which was originally developed for eyewire.org.
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
Built Distribution
File details
Details for the file microviewer-1.9.0.tar.gz
.
File metadata
- Download URL: microviewer-1.9.0.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813eb89d19feec818dc2b0e11d46208b9b21bf000c1900c0647f9f7b6bf3fcba |
|
MD5 | a74eac300acb282d6682edb859e91805 |
|
BLAKE2b-256 | 438b8a705287465a90553397e280eff99364f49d3b9a6fdad8b6b2fcfb4f3664 |
File details
Details for the file microviewer-1.9.0-py3-none-any.whl
.
File metadata
- Download URL: microviewer-1.9.0-py3-none-any.whl
- Upload date:
- Size: 150.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2422f104ea3fcbcba08c2df866b94b905e49f739ac2b8391f7b2f6e81b3b4493 |
|
MD5 | 7aac1debabaece09e05075a418767587 |
|
BLAKE2b-256 | 959d74156c0436b0862cca5d2af46e0e010fd67e4ee9b7bc8df4e8d2d1402554 |