|
lsst.afw
14.0
|
Classes | |
| class | Mapping |
| Baseclass to map red, blue, green intensities into uint8 values. More... | |
| class | LinearMapping |
| A linear map map of red, blue, green intensities into uint8 values. More... | |
| class | ZScaleMapping |
| A mapping for a linear stretch chosen by the zscale algorithm (preserving colours independent of brightness) More... | |
| class | AsinhMapping |
| A mapping for an asinh stretch (preserving colours independent of brightness) More... | |
| class | AsinhZScaleMapping |
| A mapping for an asinh stretch, estimating the linear stretch by zscale. More... | |
| class | asinhMappingF |
| class | _RgbImageF |
Functions | |
| def | computeIntensity |
| Return a naive total intensity from the red, blue, and green intensities. More... | |
| def | makeRGB |
| def | displayRGB |
| Display an rgb image using matplotlib. More... | |
| def | writeRGB |
| Write an RGB image to disk. More... | |
| def | RgbImageF |
| def lsst.afw.display.rgb.computeIntensity | ( | imageR, | |
imageG = None, |
|||
imageB = None |
|||
| ) |
Return a naive total intensity from the red, blue, and green intensities.
| imageR | intensity of image that'll be mapped to red; or intensity if imageG and imageB are None |
| imageG | intensity of image that'll be mapped to green; or None |
| imageB | intensity of image that'll be mapped to blue; or None |
Inputs may be MaskedImages, Images, or numpy arrays and the return is of the same type
| def lsst.afw.display.rgb.displayRGB | ( | rgb, | |
show = True |
|||
| ) |
Display an rgb image using matplotlib.
| rgb | The RGB image in question |
| show | If true, call plt.show() |
| def lsst.afw.display.rgb.makeRGB | ( | imageR, | |
imageG = None, |
|||
imageB = None, |
|||
minimum = 0, |
|||
dataRange = 5, |
|||
Q = 8, |
|||
fileName = None, |
|||
saturatedBorderWidth = 0, |
|||
saturatedPixelValue = None, |
|||
xSize = None, |
|||
ySize = None, |
|||
rescaleFactor = None |
|||
| ) |
Make a set of three images into an RGB image using an asinh stretch and optionally write it to disk If saturatedBorderWidth is non-zero, replace saturated pixels with saturatedPixelValue. Note that replacing saturated pixels requires that the input images be MaskedImages.
| def lsst.afw.display.rgb.RgbImageF | ( | imageR, | |
| imageG, | |||
| imageB, | |||
| mapping | |||
| ) |
| def lsst.afw.display.rgb.writeRGB | ( | fileName, | |
| rgbImage | |||
| ) |
Write an RGB image to disk.
| fileName | The output file. The suffix defines the format, and must be supported by matplotlib |
| rgbImage | The image, as made by e.g. makeRGB |
Most versions of matplotlib support png and pdf (although the eps/pdf/svg writers may be buggy, possibly due an interaction with useTeX=True in the matplotlib settings).
If your matplotlib bundles pil/pillow you should also be able to write jpeg and tiff files.
1.8.5