The set of modules to generate 2D/3D Random Phantoms. Specifically “foam”-like phantoms.
-
tomophantom.generator.foam2D(x0min, x0max, y0min, y0max, c0min, c0max, ab_min, ab_max, N_size, tot_objects, object_type)[source]
Function to generate 2D foam-like structures using different object types (ellipse, parabola, gaussian) with random parameters.
-
tomophantom.generator.foam3D(x0min, x0max, y0min, y0max, z0min, z0max, c0min, c0max, ab_min, ab_max, N_size, tot_objects, object_type)[source]
Function to generate 3D foam-like structures using different object types (ellipsoids, paraboloids, gaussians) with random parameters.