data_viewer_luts#

class HighLowLUT(*, view_box: ViewBox, base_item: ImageItem, hist_item: HistogramLUTItem, low: float, high: float, dtype_min: int, dtype_max: int, n_pts: str = 'max', low_color: tuple[int] = (0, 0, 255, 255), high_color: tuple[int, int, int, int] = (255, 0, 0, 255))[source]#

Bases: QObject

Adds a 2nd ImageItem on top of an existing one. The overlay keeps its own (fixed) 0‑to‑dtype range, so two absolute thresholds never move when the user changes the greyscale levels of the underlying slice.

set_high(v)[source]#
set_low(v)[source]#
class LUT(image=None, color='red', percentiles=[[-100, 0, 50], [50, 75, 100]], parent=None, *args)[source]#

Bases: QWidget

quickPercentile(data, percentiles, target_size=1000.0)[source]#
updateRegionPercentile(pmin, pmax)[source]#
updateRegionRange(m, p)[source]#
class LUTItem(*args, **kwargs)[source]#

Bases: HistogramLUTItem

Lookup table item for the DataViewer

imageChanged(autoLevel=False, autoRange=False)[source]#
quickMinMax(targetSize=1000.0)[source]#

Estimate the min/max values of the image data by subsampling.

class LUTWidget(parent=None, *args, **kwargs)[source]#

Bases: GraphicsView

Lookup table widget for the DataViewer

sizeHint(self) QSize[source]#