Qt-based GUI to visualize image-like data.
Project description
iminspect
A python utility package for image/matrix visualization.
Dependencies
numpy
, obviouslyPyQt5
for the graphical user interfaceqimage2ndarray
to convert numpy ndarrays to Qt imagesvito
a lightweight vision tool package
Example usage:
from iminspect.inspector import inspect
import numpy as np
# Show random noise image:
inspect(np.random.rand(4096,4096) - 0.5)
# Show as class labels:
inspect((np.random.rand(16,16) * 1e2 % 5).astype(np.int16), is_categoric=True)
Exemplary screenshot (visualizing categoric data, i.e. labels):
UI Documentation
- To inspect a data point/pixel, just move the mouse above it.
- Zooming
Ctrl+Wheel
to zoom in/outCtrl+Shift+Wheel
to speed up zoomingCtrl+{+|-}
to zoom in/outCtrl+Shift+{+|-}
to zoom in/out faster
- Scrolling
Wheel
scroll up/downShift+Wheel
speeds up scrollingCtrl+{Up|Down|Left|Right}
to scroll using keyboardCtrl+Shift+{Up|Down|Left|Right}
scrolls faster
- Keyboard shortcuts
Ctrl+Q
closes the inspection GUI
Changelog
0.2.0
- Major refactoring: moved image utils and colorizing code to separate vito package
- Usability improvements: keyboard shortcuts for zooming, scaling and scrolling
0.1.2
- Added tests for non-GUI functionality
- Integrate github runners for test/build/deploy
- Fix definition for colormap gray
0.1.1
- Additional features:
- ImageCanvas supports ROI selection (useful for custom input widgets)
- Refactoring:
- Clean up imports
- Make pylint/flake8 happier
- Fixes:
- Adjust scrollbars when zooming multiple linked ImageCanvas
- Additional features:
0.1.0
- Initial public release
Upcoming Changes
- Support flow visualization
2-layer flow, default to color wheel representation, port C++/MATLAB https://people.csail.mit.edu/celiu/OpticalFlow/ - Add load from disk functionality
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
iminspect-0.2.0.tar.gz
(19.3 kB
view details)
Built Distribution
iminspect-0.2.0-py3-none-any.whl
(20.6 kB
view details)
File details
Details for the file iminspect-0.2.0.tar.gz
.
File metadata
- Download URL: iminspect-0.2.0.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 401742e63252e04c54afcc443e9f3ae0663771ae83067d56f72958cd9c1f428d |
|
MD5 | cf1c8debe6c87cc4e7b3a9fc5b11ae60 |
|
BLAKE2b-256 | a71cdc143a6d459f398b04ed48fdbf86814bc4726ad0500fab02ca456b29803f |
File details
Details for the file iminspect-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: iminspect-0.2.0-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2edc1e1197c14141d7c64336fd9f253b5e776c135d8fe28e38cd6ce46dda0fc3 |
|
MD5 | 2e75110565a0bedf1a5c553b81b4d063 |
|
BLAKE2b-256 | a7f5643f97759c1030dfa1a9237609fc55bee432fc62667335a82c955492718d |