- class craftutils.observation.image.LinearStretch(astropy.visualization.stretch.BaseStretch)
A linear stretch with a slope and offset.
The stretch is given by:
\[y = slope x + intercept\]Parameters¶
- slopefloat, optional
The
slopeparameter used in the above formula. Default is 1.- interceptfloat, optional
The
interceptparameter used in the above formula. Default is 0.
Public members¶
-
LinearStretch(slope=
1, intercept=0) Initialize self. See help(type(self)) for accurate signature.
-
__call__(values, clip=
True, out=None) Transform values using this stretch.
Properties¶
- property inverse
A stretch object that performs the inverse operation.