lsst.afw  13.0-73-gb2a4e38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
lsst.afw.display.rgb.ZScaleMapping Class Reference

A mapping for a linear stretch chosen by the zscale algorithm (preserving colours independent of brightness) More...

Inheritance diagram for lsst.afw.display.rgb.ZScaleMapping:
lsst.afw.display.rgb.LinearMapping lsst.afw.display.rgb.Mapping

Public Member Functions

def __init__
 A linear stretch from [z1, z2] chosen by the zscale algorithm. More...
 
- Public Member Functions inherited from lsst.afw.display.rgb.LinearMapping
def __init__
 A linear stretch from [minimum, maximum]; if one or both are omitted use image minimum/maximum to set them. More...
 
def mapIntensityToUint8
 
- Public Member Functions inherited from lsst.afw.display.rgb.Mapping
def __init__
 Create a mapping. More...
 
def makeRgbImage
 Convert 3 arrays, imageR, imageG, and imageB into a numpy RGB image. More...
 
def intensity
 Return the total intensity from the red, blue, and green intensities. More...
 
def mapIntensityToUint8
 

Additional Inherited Members

- Public Attributes inherited from lsst.afw.display.rgb.LinearMapping
 maximum
 
- Public Attributes inherited from lsst.afw.display.rgb.Mapping
 minimum
 

Detailed Description

A mapping for a linear stretch chosen by the zscale algorithm (preserving colours independent of brightness)

x = (I - minimum)/range

Definition at line 232 of file rgb.py.

Constructor & Destructor Documentation

def lsst.afw.display.rgb.ZScaleMapping.__init__ (   self,
  image,
  nSamples = 1000,
  contrast = 0.25 
)

A linear stretch from [z1, z2] chosen by the zscale algorithm.

Parameters
imageImage whose parameters are desired
nSamplesThe number of samples to use to estimate the zscale parameters
contrastThe number of samples to use to estimate the zscale parameters

Definition at line 239 of file rgb.py.


The documentation for this class was generated from the following file: