This is a module
generators¶
Collection of functions for generating synthetic images¶
This module contains a variety of functions for generating artificial images of porous materials, generally for testing, validation, debugging, and illustration purposes.
|
Generates an image containing amorphous blobs |
|
Creates an array of specified size with corners, edges or faces labelled as |
|
Create a 3D image of a bundle of tubes, in the form of a rectangular plate with randomly sized holes through it. |
|
Generates a binary image of overlapping cylinders given porosity OR number of cylinders. |
A 2D micromodel with cylindrical pillars positioned on a lattice |
|
|
A 2D micromodel with randomly located cylindrical pillars of random radius |
|
Generates a cylindrical plug suitable for use as a mask on a tomogram |
|
Generates a image of distances from given axis |
|
Generate an image with |
|
Generate fractal noise with realistic structures across scales. |
|
Inserts sub-image into a larger image at the specified location. |
|
Generate a cubic packing of spheres in a specified lattice arrangement. |
|
Calculate the voxel coordinates of a straight line between the two given end points |
|
Generate a packing of overlapping mono-disperse spheres |
|
Create an image of randomly placed, overlapping spheres with a distribution of radii. |
Iterativley inserts spheres as close to the given sites as possible. |
|
|
Iteratively inserts spheres at the lowest accessible point in an image, mimicking a gravity packing. |
|
Generates an array containing a linear ramp of greyscale values along the given axis. |
|
Generates an image of random cantor dust |
|
Generates a sphere or disk packing using random sequential addition as described by Torquato [1]_. |
A 2D micromodel with rectangular pillars positioned on a lattice |
|
|
Generates an image of a Sierpinski carpet or foam with independent control of image size and number of iterations |
|
Generates a sphere packing given a list of centers and radii |
|
Create an image from the edges of a Voronoi tessellation. |