microviewer


Namemicroviewer JSON
Version 1.7.1 PyPI version JSON
download
home_pagehttps://github.com/seung-lab/microviewer/
SummaryVisualize 3D numpy arrays in the browser.
upload_time2024-03-24 06:28:29
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/29/f2/b60fa7850ecb8954938a220542512e7aa7778df2a2fd6a3704dc3ac3888c/microviewer-1.7.1.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.7.1",
    "project_urls": {
        "Homepage": "https://github.com/seung-lab/microviewer/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1fc01d25e5c0a46fe03c9fc62f3448ff29a10f9b9a6e76352af24714b0bfe36f",
                "md5": "3e6bea01f4afe264328c093b30b02ab0",
                "sha256": "9012e169f515f1e3c7b7067c987f22800da1a132879e5e1c8ad0cdb30b75ca00"
            },
            "downloads": -1,
            "filename": "microviewer-1.7.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3e6bea01f4afe264328c093b30b02ab0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 147641,
            "upload_time": "2024-03-24T06:28:27",
            "upload_time_iso_8601": "2024-03-24T06:28:27.544382Z",
            "url": "https://files.pythonhosted.org/packages/1f/c0/1d25e5c0a46fe03c9fc62f3448ff29a10f9b9a6e76352af24714b0bfe36f/microviewer-1.7.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "29f2b60fa7850ecb8954938a220542512e7aa7778df2a2fd6a3704dc3ac3888c",
                "md5": "30547999ab5f7d6bbaca1c34b60a6b3a",
                "sha256": "c2eb96361f5f48afaadb703e707f34eff0112abb1e2815ed4e8d03fe02c5776f"
            },
            "downloads": -1,
            "filename": "microviewer-1.7.1.tar.gz",
            "has_sig": false,
            "md5_digest": "30547999ab5f7d6bbaca1c34b60a6b3a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1367407,
            "upload_time": "2024-03-24T06:28:29",
            "upload_time_iso_8601": "2024-03-24T06:28:29.672478Z",
            "url": "https://files.pythonhosted.org/packages/29/f2/b60fa7850ecb8954938a220542512e7aa7778df2a2fd6a3704dc3ac3888c/microviewer-1.7.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-24 06:28:29",
    "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.27585s