Illustration generated with AI; not experimental data.¶
juspice.shape_based — Physics-Based Image Generation¶
Synthetic images built from simple shapes.
inpaint_background_Telea()Remove particles from a microscopy image to get an empty background.
drawCanvas for drawing noise backgrounds, filled circles, particles with a Gaussian brightness profile, cracks, and moving-particle frame sequences.
ShapeBasedAccessorAvailable as
spice.shape_based; wrapsdrawand records each step inspice.history.
Examples
from juspice.io import load_data
spice = load_data('background.png')
spice.shape_based.create(
width=256, height=256, background_img_path='background.png'
) \
.shape_based.generate_gaussian_circles(num_objects=15) \
.shape_based.generate_wiggly_cracks(num_cracks=5)
spice.data # final synthetic image, 2D uint8