|
lsst.pipe.tasks gd5638573c2+392ae78cd2
|
Public Member Functions | |
| __init__ (self, minimum=None, maximum=None, image=None) | |
| map_intensity_to_uint8 (self, I) | |
| Public Member Functions inherited from lsst.pipe.tasks._fallback_asinhmapping.Mapping | |
| __init__ (self, minimum=None, image=None) | |
| make_rgb_image (self, image_r, image_g, image_b) | |
| intensity (self, image_r, image_g, image_b) | |
Public Attributes | |
| maximum = maximum | |
| Public Attributes inherited from lsst.pipe.tasks._fallback_asinhmapping.Mapping | |
| minimum = minimum | |
Protected Attributes | |
| _range = None | |
| Protected Attributes inherited from lsst.pipe.tasks._fallback_asinhmapping.Mapping | |
| _uint8Max = float(np.iinfo(np.uint8).max) | |
| _image = np.asarray(image) | |
Additional Inherited Members | |
| Protected Member Functions inherited from lsst.pipe.tasks._fallback_asinhmapping.Mapping | |
| _convert_images_to_uint8 (self, image_r, image_g, image_b) | |
A linear map map of red, blue, green intensities into uint8 values.
A linear stretch from [minimum, maximum].
If one or both are omitted use image min and/or max to set them.
Parameters
----------
minimum : float
Intensity that should be mapped to black (a scalar or array for R, G, B).
maximum : float
Intensity that should be mapped to white (a scalar).
| lsst.pipe.tasks._fallback_asinhmapping.LinearMapping.map_intensity_to_uint8 | ( | self, | |
| I ) |
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).
Parameters
----------
I : ndarray
Intensity to be mapped.
Returns
-------
mapped_I : ndarray
``I`` mapped to uint8
Reimplemented from lsst.pipe.tasks._fallback_asinhmapping.Mapping.