ROI editor#
The datalab.gui.roieditor module provides the ROI editor widgets
for signals and images.
Signal ROI editor#
- class datalab.gui.roieditor.SignalROIEditor(parent: QW.QWidget | None, obj: SignalObj | ImageObj, mode: Literal['apply', 'extract', 'define'] = 'apply', item: TypePlotItem | None = None, options: PlotOptions | dict[str, Any] | None = None, size: tuple[int, int] | None = None)[source]#
Signal ROI Editor
- Parameters:
parent – Parent plot dialog
obj – Object to edit (
sigima.objects.SignalObjorsigima.objects.ImageObj)mode – Mode of operation, either “apply” (define ROI, then apply it to selected objects), “extract” (define ROI, then extract data from it), or “define” (define ROI without applying or extracting).
item – Optional plot item to add to the plot (if None, a new item is created from the object)
Image ROI editor#
- class datalab.gui.roieditor.ImageROIEditor(parent: QW.QWidget | None, obj: SignalObj | ImageObj, mode: Literal['apply', 'extract', 'define'] = 'apply', item: TypePlotItem | None = None, options: PlotOptions | dict[str, Any] | None = None, size: tuple[int, int] | None = None)[source]#
Image ROI Editor
- Parameters:
parent – Parent plot dialog
obj – Object to edit (
sigima.objects.SignalObjorsigima.objects.ImageObj)mode – Mode of operation, either “apply” (define ROI, then apply it to selected objects), “extract” (define ROI, then extract data from it), or “define” (define ROI without applying or extracting).
item – Optional plot item to add to the plot (if None, a new item is created from the object)