Home | Trees | Indices | Help |
|
---|
|
Some miscellaneous helpers for making images and such.
As this may turn into a fairly expensive import, this should *not* be imported by utils.__init__. Hence, none of these functions are in gavo.api or gavo.utils.
Functions | |||
|
|||
|
|||
|
|||
|
Variables | |
__package__ =
|
Function Details |
returns a normalized JPEG for numpy pixels. pixels is assumed to come from FITS arrays, which are flipped wrt to jpeg coordinates, which is why we're flipping here. The normalized intensities are scaled by v^gamma; we believe the default helps with many astronomical images |
returns a PNG string that is a scaled version of an image in srcFile. srcFile must correspond to something that PIL can read. Since scaling really sucks for non-RGB images, we unconditionally convert whatever we get to 3-band RGB. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |