spym.process.level
¶
Module Contents¶
Functions¶
fixzero (image, to_mean=False) |
Add a constant to all the data to move the minimum (or the mean value) to zero. |
plane (image) |
Corrects for image tilting by subtraction of a plane. |
align (image, baseline=’mean’, axis=1, poly_degree=2) |
Align rows. |
-
class
spym.process.level.
Level
(spym_instance)¶ Level.
-
fixzero
(self, **kwargs)¶ Add a constant to all the data to move the minimum (or the mean value) to zero.
- Args:
- to_mean: bool, optional. If true move mean value to zero, if false move mimimum to zero (default).
-
plane
(self, **kwargs)¶ Corrects for sample tilting by subtraction of a plane.
-
align
(self, **kwargs)¶ Align rows.
- Args:
- baseline: defines how baselines are estimated; ‘mean’ (default), ‘median’, ‘poly’. axis: axis along wich calculate the baselines. poly_degree: polnomial degree if baseline=’poly’.
-
-
spym.process.level.
fixzero
(image, to_mean=False)¶ Add a constant to all the data to move the minimum (or the mean value) to zero.
- Args:
- image: numpy array. to_mean: bool, optional. If true move mean value to zero, if false move mimimum to zero (default).
- Returns:
- numpy array.
-
spym.process.level.
plane
(image)¶ Corrects for image tilting by subtraction of a plane.
- Args:
- image: 2d numpy array.
- Returns:
- flattened image as 2d numpy array.
-
spym.process.level.
align
(image, baseline='mean', axis=1, poly_degree=2)¶ Align rows.
- Args:
- image: 2d numpy array. baseline: defines how baselines are estimated; ‘mean’ (default), ‘median’, ‘poly’. axis: axis along wich calculate the baselines. poly_degree: polnomial degree if baseline=’poly’.
- Returns:
- corrected 2d numpy array.