microviewer


Namemicroviewer JSON
Version 1.8.0 PyPI version JSON
download
home_pagehttps://github.com/seung-lab/microviewer/
SummaryVisualize 3D numpy arrays in the browser.
upload_time2024-07-30 03:14:53
maintainerNone
docs_urlNone
authorWilliam Silversmith
requires_pythonNone
licenseLicense :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
keywords
VCS
bugtrack_url
requirements click numpy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI version](https://badge.fury.io/py/microviewer.svg)](https://badge.fury.io/py/microviewer)

# microviewer
Multiplatform 3D numpy image browser based viewer.

```python
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
```

```bash
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
```

![Segmentation display in microviewer](seg-demo.png "Segmentation display in microviewer.")

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](https://numpy.org/neps/nep-0001-npy-format.html) or [.ckl](https://github.com/seung-lab/crackle), 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

```bash
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.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/seung-lab/microviewer/",
    "name": "microviewer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "William Silversmith",
    "author_email": "ws9@princeton.edu",
    "download_url": "https://files.pythonhosted.org/packages/d3/99/9ad0af58b7f3a4b3fc8d2827029907475f5c6bbe052e26b2b389e0237d4d/microviewer-1.8.0.tar.gz",
    "platform": null,
    "description": "[![PyPI version](https://badge.fury.io/py/microviewer.svg)](https://badge.fury.io/py/microviewer)\n\n# microviewer\nMultiplatform 3D numpy image browser based viewer.\n\n```python\nfrom microviewer import view, hyperview\n\nview(numpy_image) # for gray and color images\nview(numpy_image, seg=True) # for segmentation labels\nview(numpy_image, seg=True, port=8082)\n\nhyperview(image, labels) # interactive overlay\n```\n\n```bash\nuview image.npy.gz # view as image\nuview labels.npy.gz --seg # view as segmentation\nuview image.npy.gz labels.npy.gz # view image w/ overlay\nuview image.npy.gz --paint # view image w/ blank overlay\n```\n\n![Segmentation display in microviewer](seg-demo.png \"Segmentation display in microviewer.\")\n\nVisualize 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.\n\n## Features\n\n- 3 axis visualization of 3D images.\n- Grayscale images with segmentation overlay.\n- Segmentation selection with brush tools.\n- Direct voxel painting.\n- Save segmentation as [.npy](https://numpy.org/neps/nep-0001-npy-format.html) or [.ckl](https://github.com/seung-lab/crackle), an advanced compresssion format.\n- Undo/Redo\n\n## Supports\n\n- 8-bit grayscale 3D images\n- color images (including 3 channel 3D images)\n- floating point images\n- boolean images\n- segmentation labels\n- .npy, .ckl, or .nii format\n\nFor .ckl and .nii formats, you must separately install crackle-codec and nibabel respectively.\n\n## Installation\n\n```bash\npip install \"microviewer[all_formats]\"\n```\n\nall_formats will install all supported formats for the CLI. By default, only .npy filesare supported.\n\n## History\n\nThis 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.\n\n",
    "bugtrack_url": null,
    "license": "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
    "summary": "Visualize 3D numpy arrays in the browser.",
    "version": "1.8.0",
    "project_urls": {
        "Homepage": "https://github.com/seung-lab/microviewer/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "761ec00365b409d335cc7093ee9e422c9ca79f989eddc2104f7114e0a4878413",
                "md5": "b9afdfbb2509356644317be85f30f456",
                "sha256": "fa0c9aa67c02ae867a219b1e839e1d0d6b16377c226288e1ace7d21557b6ca09"
            },
            "downloads": -1,
            "filename": "microviewer-1.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b9afdfbb2509356644317be85f30f456",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 149612,
            "upload_time": "2024-07-30T03:14:51",
            "upload_time_iso_8601": "2024-07-30T03:14:51.872960Z",
            "url": "https://files.pythonhosted.org/packages/76/1e/c00365b409d335cc7093ee9e422c9ca79f989eddc2104f7114e0a4878413/microviewer-1.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3999ad0af58b7f3a4b3fc8d2827029907475f5c6bbe052e26b2b389e0237d4d",
                "md5": "66918eef9afc38516d00ffaa83f916dc",
                "sha256": "931a61d3c8a3408881c0a94e85e542eda76e67f48ae4f685faa4013ea2f8b6ee"
            },
            "downloads": -1,
            "filename": "microviewer-1.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "66918eef9afc38516d00ffaa83f916dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1369345,
            "upload_time": "2024-07-30T03:14:53",
            "upload_time_iso_8601": "2024-07-30T03:14:53.866785Z",
            "url": "https://files.pythonhosted.org/packages/d3/99/9ad0af58b7f3a4b3fc8d2827029907475f5c6bbe052e26b2b389e0237d4d/microviewer-1.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-30 03:14:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "seung-lab",
    "github_project": "microviewer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "click",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        }
    ],
    "lcname": "microviewer"
}
        
Elapsed time: 0.27777s