Skip to main content

Imagin

Imagin is a fast, interactive viewer and analyzer for streamed images and image files, built with Python, pyqtgraph, and SciPy.

Installation

Install the core application with file-based image support:

pip install imagin

Features

  • Input sources:
    • EPICS PVAccess and Channel Access
    • Image files, PNG is the default image format; other formats are also supported
    • Video files, MKV, MP4; other formats are also supported
    • HTTP image URLs
    • USB cameras
  • Fast, robust characterization of multiple objects using fitted ellipsoids.
  • Supports images with 16-bit or higher channel depth.
  • Image orientation control and arbitrary rotation.
  • Interactive zooming and panning.
  • Contrast and color-map control.
  • Region of interest (ROI) selection for image analysis.
  • ROI partitioning.
  • ROI projection plots.
  • Optional Gaussian fitting in 1D or 2D for improved precision.
  • Despeckling.
  • Automatic background elimination using prominence filtering (de-basing).
  • Background subtraction using reference images.
  • Interactive calibration from pixels to millimeters.
  • Reference image slots for saving and restoring images.
  • Extensible through user-supplied add-ons.
  • Fast browsing and cleanup of image directories.

Imagin screenshot

Presentation

Examples

python -m imagin -b http https://cdn.esahubble.org/archives/images/large/heic1523b.jpg -t 100
python -m imagin -b file sample_images/*.jpg -t 100 -m 40
python -m imagin -b file ~/Pictures/*.png

Testing with the EPICS PVAccess image simulator (epicsdev.imagegen)

pip install epicsdev
python -m epicsdev.imagegen -c &
python -m imagin -t 100 image0:image -b pva -m 9

Animate by changing image parameters from a Python script:

import time
import numpy as np
from p4p.client.thread import Context

iface = Context("pva")

one_to_zero = 1 - np.linspace(0, 1, 11)
scales = np.append(one_to_zero[:-1], np.flip(one_to_zero)[2:])

for scale in scales:
    iface.put("image0:gridScaleX", scale)
    time.sleep(0.1)

Metadata

Release files for imagin 4.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 imagin 4.0.0
File Size Uploaded Provenance Actions
imagin-4.0.0.tar.gz 1.3 MB Without provenance Details for imagin-4.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imagin 4.0.0
File Interpreter ABI Platform Actions
imagin-4.0.0-py3-none-any.whl Python 3 none any Details for imagin-4.0.0-py3-none-any.whl

Total release size: 1.4 MB

Release files / imagin-4.0.0.tar.gz

Download URL imagin-4.0.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
061fbb3bac5078215dafbdbe6157f3f052d85d2b2bd06f5f63b68c1728e2a032
BLAKE2b-256 checksum
How to use checksums
964969fbd9b1b5cf6beb477fb5a1ab6112668a1beaf30b1eeed607e3764b6a00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.1

Release files / imagin-4.0.0-py3-none-any.whl

Download URL imagin-4.0.0-py3-none-any.whl
Size 49.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
270900eacd361e3416efd5a13f93d4bff50f4a07129c78752249f3bf761e3a74
BLAKE2b-256 checksum
How to use checksums
8f85128f1ff5e9c7e60e3c294922f596fd52bb32e7df19d19215741596098407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.1

Security for imagin 4.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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