Image#

PyVista includes several sources for generating image data, along with a function for comparing images.

Image Sources#

ImageEllipsoidSource(*args, **kwargs)

Create a binary image of an ellipsoid class.

ImageGaussianSource(*args, **kwargs)

Create a binary image with Gaussian pixel values.

ImageGridSource(*args, **kwargs)

Create an image of a grid.

ImageMandelbrotSource(*args, **kwargs)

Create an image of the Mandelbrot set.

ImageNoiseSource(*args, **kwargs)

Create an image filled with uniform noise.

ImageSinusoidSource(*args, **kwargs)

Create an image of a sinusoid.

Image Comparison#

compare_images(im1, im2[, threshold, use_vtk])

Compare two different images of the same size.

See also

pyvista compare

Compare two files from the command line.