|
| def | computeIntensity (imageR, imageG=None, imageB=None) |
| | Return a naive total intensity from the red, blue, and green intensities. More...
|
| |
| def | makeRGB (imageR, imageG=None, imageB=None, minimum=0, dataRange=5, Q=8, fileName=None, saturatedBorderWidth=0, saturatedPixelValue=None, xSize=None, ySize=None, rescaleFactor=None) |
| |
| def | displayRGB (rgb, show=True) |
| | Display an rgb image using matplotlib. More...
|
| |
| def | writeRGB (fileName, rgbImage) |
| | Write an RGB image to disk. More...
|
| |
| def | RgbImageF (imageR, imageG, imageB, mapping) |
| |
| def lsst.afw.display.rgb.computeIntensity |
( |
|
imageR, |
|
|
|
imageG = None, |
|
|
|
imageB = None |
|
) |
| |
Return a naive total intensity from the red, blue, and green intensities.
- Parameters
-
| 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
Definition at line 32 of file rgb.py.
| def lsst.afw.display.rgb.writeRGB |
( |
|
fileName, |
|
|
|
rgbImage |
|
) |
| |
Write an RGB image to disk.
- Parameters
-
| 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.
Definition at line 393 of file rgb.py.