Skip to main content

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

Metadata

Release files for image-viewer-mk2 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for image-viewer-mk2 1.0.0
File Size Uploaded
image-viewer-mk2-1.0.0.tar.gz 238.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for image-viewer-mk2 1.0.0
File Interpreter ABI Platform
image_viewer_mk2-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 494.0 kB

Release files / image-viewer-mk2-1.0.0.tar.gz

Download URL image-viewer-mk2-1.0.0.tar.gz
Size 238.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8345792fde4946385992a0ad6edefb580849087858de1e0d989d5bf12e66f169
BLAKE2b-256 checksum
How to use checksums
cc260382d2f642b0a80fa6d7ec2d5d562b70bb0bdad37a371138fe23d07a408a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / image_viewer_mk2-1.0.0-py3-none-any.whl

Download URL image_viewer_mk2-1.0.0-py3-none-any.whl
Size 255.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad88d47022e6cc59e3353d14898750b54df8c1e7b15cfa6ec12afc272e5d0ecd
BLAKE2b-256 checksum
How to use checksums
4662504eeb306e46d6217ff81972f20eaebca53bf25b9a34c58e2a83e9df195d
Upload date
Uploaded using Trusted Publishing?
What is 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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page