get_niter#

omnipose.core.get_niter(dists)[source]#

Get number of iterations.

Parameters

dists (ND array, float) -- array of (nonnegative) distance field values

Returns

niter -- number of iterations empirically found to be the lower bound for convergence of the distance field relaxation method

Return type

int