delta.data.histogram_voodoo

delta.data.histogram_voodoo(image: ndarray[Any, dtype[float32]], num_control_points: int = 3) ndarray[Any, dtype[float32]]

This function kindly provided by Daniel Eaton from the Paulsson lab. It performs an elastic deformation on the image histogram to simulate changes in illumination

Parameters
image2D numpy array

Input image.

num_control_pointsint, optional

Number of inflection points to use on the histogram conversion curve. The default is 3.

Returns
2D numpy array

Modified image.