nw_scale_rgb¶
-
pydl.pydlutils.rgbcolor.nw_scale_rgb(colors, scales=(1.0, 1.0, 1.0))[source]¶ Multiply RGB image by color-dependent scale factor.
Parameters: colors :
ndarray3D Array containing RGB image. The dimensions should be (X, Y, 3).
scales :
tuple()orndarray, optionalAn array with 3 elements.
Returns: ndarrayThe scaled image.
Raises: :exc:`ValueError`
If
colorsorscaleshas the wrong shape.