nw_cut_to_box¶
-
pydl.pydlutils.rgbcolor.
nw_cut_to_box
(colors, origin=0.0, 0.0, 0.0)[source]¶ Limits the pixel values of the image to a ‘box’, so that the colors do not saturate to white but to a specific color.
- Parameters
- Returns
ndarray
The “boxed” image.
- Raises
ValueError
If
colors
ororigin
has the wrong shape.