darfix.decomposition.test.utils.sampler#

darfix.decomposition.test.utils.sampler(resources, means, sigma=10)[source]#

Image sampler. Returns a function that, given an integer, returns an image with a mix of the images in resources.

Resources:

list of images name in ExternalResources.

Means:

Mean for every image in resources when computing the gaussian function.

Sigma:

sigma used in the gaussian function, defaults to 10.