AsinhMapping#

class lsst.afw.display.AsinhMapping(minimum, dataRange, Q=8)#

Bases: Mapping

A mapping for an asinh stretch (preserving colours independent of brightness)

x = asinh(Q (I - minimum)/range)/Q

Notes#

This reduces to a linear stretch if Q == 0

See http://adsabs.harvard.edu/abs/2004PASP..116..133L

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)