Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/c/e/CellProfiler-HEAD/cellprofiler/modules/correctilluminationcalculate.py   CellProfiler(Download)
from cellprofiler.cpmath.cpmorphology import grey_erosion, grey_dilation
from cellprofiler.cpmath.cpmorphology import fixup_scipy_ndimage_result as fix
from cellprofiler.cpmath.bg_compensate import backgr, MODE_AUTO, MODE_BRIGHT
from cellprofiler.cpmath.bg_compensate import MODE_DARK, MODE_GRAY
 
            else:
                scale = float(shortest_side) / 200
            result = backgr(pixel_data, mask, scale=scale)
        else:
            mode = self.spline_bg_mode.value
            iterations = self.spline_maximum_iterations.value
            rescale = self.spline_rescale.value
            result =  backgr(pixel_data, mask, mode=mode, thresh=threshold,
                             splinepoints = spline_points, scale = rescale,
                             maxiter = iterations, convergence = convergence)