Skip to main content

Image viewer for spectral images

Project description

Image viewer Mk2

Viewer for spectral images, in particular suitable from multispectral optoacoustic tomography.

Screenshot of the image viewer.

Installation

pip install image-viewer-mk2==1.0.0

See dependencies for versions of dependency libraries that were tested with this software but are not strictly required during installation. See releases for older versions.

Usage

From command line as a standalone application.

> imvmk2 [-i filename] [-c config_filename] [-d (debug)]

From within python scripts and interactive sessions. The viewer can be either used as an interactive image viewer, giving the user the ability to manually adjust the settings. The rendered image is returned back so that it can be further used inside the script.

import image_viewer_mk2.app as imv

img = np.zeros((height, width, channels))
render = imv.start(image=img)

Alternatively, it can be used to apply existing configuration and directly return a rendered image without opening the interactive GUI:

import image_viewer_mk2.app as imv

img = np.zeros((height, width, channels))
render = imv.render(image=img, config_filename='config.json')

Configuration files can be saved from the interactive GUI or they can be returned as a second return value in the script by passing parameter return_config=True to the call imv.start().

Troubleshooting

TclError: image "pyimageXX" doesn't exist

When using in interactive session, all other matplotlib figures have to be closed.

Credits

This software reuses code and icons produced by: Alistair Muldal, cilame, Benjamin Johnson, Remin Emonet, Icon home, Gregor Cresnar, Freepik, Google, Uptal Barman, Arkinasi, Royyan Wijaya, and Pancracysdh.

License

The software is provided under the MIT open license.

Citation

If you use this software for your research, please cite it as:

Kukačka, Jan (2021). Image Viewer MK2 (v1.0.0) [Computer software]. https://github.com/jankukacka/image_viewer_mk2

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

image-viewer-mk2-1.0.0.tar.gz (238.5 kB view details)

Uploaded Source

Built Distribution

image_viewer_mk2-1.0.0-py3-none-any.whl (255.5 kB view details)

Uploaded Python 3

File details

Details for the file image-viewer-mk2-1.0.0.tar.gz.

File metadata

  • Download URL: image-viewer-mk2-1.0.0.tar.gz
  • Upload date:
  • Size: 238.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for image-viewer-mk2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8345792fde4946385992a0ad6edefb580849087858de1e0d989d5bf12e66f169
MD5 a96507829dbbd477626a2f6ecb124b5e
BLAKE2b-256 cc260382d2f642b0a80fa6d7ec2d5d562b70bb0bdad37a371138fe23d07a408a

See more details on using hashes here.

File details

Details for the file image_viewer_mk2-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: image_viewer_mk2-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 255.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for image_viewer_mk2-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad88d47022e6cc59e3353d14898750b54df8c1e7b15cfa6ec12afc272e5d0ecd
MD5 9be70ff9c45ed654c0dee3c0c613de7c
BLAKE2b-256 4662504eeb306e46d6217ff81972f20eaebca53bf25b9a34c58e2a83e9df195d

See more details on using hashes here.

Supported by

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