LinearMapping#

class lsst.afw.display.LinearMapping(minimum=None, maximum=None, image=None)#

Bases: Mapping

A linear map of red, blue, green intensities into uint8 values

Parameters#

minimumfloat or sequence of float

Intensity that should be mapped to black. If an array, has three elements for R, G, B.

maximumfloat

Intensity that should be mapped to white

image

Image to estimate minimum/maximum if not explicitly set

Methods Summary

mapIntensityToUint8(intensity)

Return an array which, when multiplied by an image, returns that image mapped to the range of a uint8, [0, 255] (but not converted to uint8)

Methods Documentation

mapIntensityToUint8(intensity)#

Return an array which, when multiplied by an image, returns that image mapped to the range of a uint8, [0, 255] (but not converted to uint8)

The intensity is assumed to have had minimum subtracted (as that can be done per-band)