nw_arcsinh¶
-
pydl.pydlutils.rgbcolor.nw_arcsinh(colors, nonlinearity=3.0)[source]¶ Scales
colorsby a degree of nonlinearity specified by user.The input image must have zero background (i.e., it must already be background-subtracted).
- Parameters
colors :
ndarray3D Array containing RGB image. The dimensions should be (X, Y, 3).
nonlinearity :
floatAmount of nonlinear scaling. If set to zero, no scaling will be performed (this is equivalent to linear scaling).
- Returns
ndarrayThe scaled image.
- Raises
:exc:`ValueError`
If
colorshas the wrong shape.