Image monitor

Automatically updating image display window: subscribes to image/mask streams, with noise reduction, bright-spot detection and saving.

Overview

quatm/GUI/entries/image_monitor.py provides the image monitor (ImageDisplay): an automatically updating image display window that periodically pulls the latest frame from the image streams subscribed in properties, transforms it according to resolution and offset, refreshes the display and synchronously overlays mask streams. It has built-in noise reduction, bright-spot detection, saving of the current frame and property configuration (display levels, ROI, etc.).

Methods

MethodDescription
update_image / update_maskPeriodically pulls the image/mask stream and refreshes the display and overlay
noise_filterBilateral filtering + median filtering noise reduction using property parameters
spot_detectorBinarizes the image by threshold to detect bright spots
saveCurrentImageSaves the currently displayed frame as PNG (named by time)
subscribe_window / subscribe_maskOpens the subscription dialog to select image/mask streams and resubscribes
configureWindowOpens the property-edit dialog to adjust display levels, ROI, etc.

Usage

from quatm.GUI.entries.image_monitor import ImageDisplay

view = ImageDisplay(imagestreams=["camera/image"], parent=parent)
view.configureWindow()   # adjust display levels, ROI, etc.

For a more complete description, see Image monitor.