Note
Click here to download the full example code
Example 01: Generate a phantomΒΆ
import foam_ct_phantom
random_seed = 12345
# Note that nspheres_per_unit is set to a low value to reduce the computation time here.
# The default value is 100000.
foam_ct_phantom.FoamPhantom.generate('test_phantom.h5',random_seed,nspheres_per_unit=1000)