Skip to content

CameraRoiWidget

CameraRoiWidget widget

This image generated from example code below.

CameraRoiWidget #

Bases: QWidget

A Widget to control the camera device ROI.

When the ROI changes, the roiChanged Signal is emitted with the current ROI (x, y, width, height, comboBoxText)

Parameters:

Name Type Description Default
parent QWidget | None

Optional parent widget, by default None

None
mmcore CMMCorePlus | None

Optional pymmcore_plus.CMMCorePlus micromanager core. By default, None. If not specified, the widget will use the active (or create a new) CMMCorePlus.instance.

None

Example#

camera_roi_widget.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
from pymmcore_plus import CMMCorePlus
from qtpy.QtWidgets import QApplication

from pymmcore_widgets import CameraRoiWidget

app = QApplication([])

mmc = CMMCorePlus().instance()
mmc.loadSystemConfiguration()

cam_roi_wdg = CameraRoiWidget()
cam_roi_wdg.show()

app.exec_()