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.

draw

Canvas for drawing noise backgrounds, filled circles, particles with a Gaussian brightness profile, cracks, and moving-particle frame sequences.

ShapeBasedAccessor

Available as spice.shape_based; wraps draw and records each step in spice.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