delta.data.illumination_voodoo#
- delta.data.illumination_voodoo(image, rng, num_control_points=5)[source]#
Simulate a variation in illumination along the length of the chamber.
This function was inspired by the one above.
- Parameters
- image2D numpy array
Input image.
- rngnpr.Generator
Pseudo-random number generator.
- num_control_pointsint, optional
Number of inflection points to use on the illumination multiplication curve. The default is 5.
- Returns
- newimage2D numpy array
Modified image.