pyvista.ImageNoiseSource#
- class ImageNoiseSource(
- whole_extent=(0, 255, 0, 255, 0, 0),
- minimum=0.0,
- maximum=1.0,
- seed=None,
Create an image filled with uniform noise.
Added in version 0.44.0.
- Parameters:
Examples
Create an image of noise.
>>> import pyvista as pv >>> source = pv.ImageNoiseSource( ... whole_extent=(0, 200, 0, 200, 0, 0), ... minimum=0, ... maximum=255, ... seed=0, ... ) >>> source.output.plot(cpos='xy')
Methods
ImageNoiseSource.seed
(value)Seed the random number generator with a value.
Attributes
Get the maximum value for the generated noise.
Get the minimum value for the generated noise.
Get the output image as a ImageData.
Get extent of the whole output image.