darfix.tests.decomposition.utils.sampler#
- darfix.tests.decomposition.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.