Giter Site home page Giter Site logo

caproto-image-viewer's Introduction

caproto-image-viewer

DEPRECATED and unsupported. OpenGL support is broken on the latest numpy, and the basic image viewer does not have many features.

caproto/PyQt5-based EPICS AreaDetector image viewer with OpenGL/GLSL color mapping

Provides two widgets with varying support for image types (see next section):

1. ImageViewerWidgetGL
    a. Requires OpenGL 4.1-compatible hardware
    b. Optional color-mapping (using look-up tables from matplotlib)
    c. Bayer demosaic is done fully on the GPU
2. ImageViewerWidget 
    a. Raw image display - OpenGL not required
    b. No color mapping yet
    c. Limited image format support (on the TODO list)

Supported Image Formats

Format ImageViewerWidget ImageViewerWidgetGL
Monochrome Yes Yes
RGB1 Yes Yes
RGB2 Yes Yes
RGB3 Yes Yes
Bayer - RGGB Yes
Bayer - GBRG Yes
Bayer - GRBG Yes
Bayer - BGGR Yes
YUV444
YUV422
YUV421

Notes:

  • RGB2 is much slower than RGB1, RGB3. This can be improved at some point.

Requirements

  • Python 3.6+
  • caproto or pyepics
  • PyQt5
  • numpy

Optional

  • Matplotlib (only for additional color maps)

Installation

$ pip install -e .

Usage

If you have the ADSimDetector example IOC running, run the following for the OpenGL viewer:

$ caproto-image-viewer 13SIM1: --acquire --gl

Note that the --acquire part starts acquisition of the detector, and this may not be necessary or desirable if you use it with an existing camera/detector.

Screenshot

Then press the spacebar to enable color-mapping:

Screenshot

Cycle through the colormaps by pressing either [ or ]. Or, press p to preview other colormaps in realtime - while still acquiring:

Screenshot

You can cycle through this list similarly with [ and ], and exit the preview with p.

Alternatively, use the basic non-OpenGL version:

$ caproto-image-viewer 13SIM1: --acquire

Speed

The OpenGL display widget is very fast. Basic testing has shown:

  • Minimal IOC-to-screen latency
  • Displays 200Hz, 1MP 8-bit images with real-time color-mapping
  • Utilizes ~40% of one core in a 4-core system

Though the viewer is capable of doing this with ease, you probably shouldn't saturate your network viewing things at such a high frame rate unnecessarily. That's up to you, of course!

Screenshot

caproto-image-viewer's People

Contributors

klauer avatar

Stargazers

Gabriel Fedel avatar Matt Gibbs avatar

Watchers

James Cloos avatar Dan Allan avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.