steps2D#

cellpose_omni.dynamics.steps2D(p, dP, inds, niter, omni=False, calc_trace=False)[source]#

run dynamics of pixels to recover masks in 2D

Euler integration of dynamics dP for niter steps

Parameters
  • p (float32, 3D array) -- pixel locations [axis x Ly x Lx] (start at initial meshgrid)

  • dP (float32, 3D array) -- flows [axis x Ly x Lx]

  • inds (int32, 2D array) -- non-zero pixels to run dynamics on [npixels x 2]

  • niter (int32) -- number of iterations of dynamics to run

Returns

p -- final locations of each pixel after dynamics

Return type

float32, 3D array