LinearMapping#
- class lsst.afw.display.LinearMapping(minimum=None, maximum=None, image=None)#
Bases:
MappingA linear map of red, blue, green intensities into uint8 values
Parameters#
- minimum
floator sequence offloat Intensity that should be mapped to black. If an array, has three elements for R, G, B.
- maximum
float 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
minimumsubtracted (as that can be done per-band)
- minimum