// Macro to make particles moving in straight line with different // amounts of wiggle or speed variation. // For giving known quantities to particle tracking software to see how well features // are extracted and tracked. // Michael Cammer circa 201111 // For these raw data we are imaging at 10 fps. // Each pixel has spatial resolution of 0.1 um in XY. // The speed of a particle with no variations is 0.1 um per 0.1 sec, a.k.a. 1 um/s. var boxsize = 256; macro "simulation [q]" { setBatchMode(true); newImage("particle", "16-bit Black", boxsize, boxsize, 256); wiggle = 0; speedvariation = 0; backup = 0; for (y=20; y