Skip to main content

Qt-based GUI to visualize image-like data.

Project description

iminspect

A python utility package for image/matrix visualization.

Dependencies

  • numpy, obviously
  • PyQt5 for the graphical user interface
  • qimage2ndarray to convert numpy ndarrays to Qt images

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):
Screenshot

UI Documentation

  • To inspect a data point/pixel, just move the mouse above it.
  • Zooming
    • Ctrl+Wheel to zoom in/out
    • Additionally holding Shift speeds up zooming
  • Scrolling
    • Move the scroll bars
    • Wheel up/down
    • Additionally holding Shift speeds up scrolling

Changelog

  • 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
  • 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
  • Support keyboard shortcuts for zooming/scrolling, scaleToFit

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

iminspect-0.1.2.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

iminspect-0.1.2-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file iminspect-0.1.2.tar.gz.

File metadata

  • Download URL: iminspect-0.1.2.tar.gz
  • Upload date:
  • Size: 39.8 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

Hashes for iminspect-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2f07374399bf0866e7af6ab43ec93239439c01c1513bb9eb610e201698cb430b
MD5 c75104036edaf4501bc0f8b64e56934d
BLAKE2b-256 b2ffc14cfac9da9f115e39fff4f891786485294b94be87158158d63ad94892da

See more details on using hashes here.

File details

Details for the file iminspect-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: iminspect-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 41.1 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

Hashes for iminspect-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 30ba44342ed91c63d9be3924726fcdc6a6b742fc2ad76294a99821f8f2300b1f
MD5 796504162d3d8d2804a6e2b2738a1eba
BLAKE2b-256 0787d662cab8530354cc41250d54acc30fafed96afa79a1c1c17db5183da958f

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