This is a graphicsWidget which provides controls for adjusting the display of an image. Includes:
- Image histogram
- Movable region over histogram to select black/white levels
- Gradient editor to define color lookup table for single-channel images
If image (ImageItem) is provided, then the control will be automatically linked to the image and changes to the control will be immediately reflected in the image’s appearance. By default, the histogram is rendered with a fill. For performance, set fillHistogram = False.
Enable auto-scaling on the histogram plot.
Return the min and max levels.
getLookupTable(img=None, n=None, alpha=None)¶
Return a lookup table from the color gradient defined by this HistogramLUTItem.
setHistogramRange(mn, mx, padding=0.1)¶
Set the Y range on the histogram plot. This disables auto-scaling.
Set an ImageItem to have its levels and LUT automatically controlled by this HistogramLUTItem.
Set the min and max levels.