def boxes(pixels, ka=None): t = utils.totals(pixels) m = utils.maxima(t) ka = ka or utils.k_alpha(t[m]) m &= (abs(t - ka) < .15 * ka) return utils.boxes(m, pixels)
def boxes(pixels, ka=None): t = utils.totals(pixels, n=3) m = utils.maxima(pixels, n=2)[...,1:-1,1:-1] ka = ka or utils.k_alpha(t[m]) m &= (abs(t - ka) < .15*ka) return utils.boxes(m, pixels, n=3)
def boxes(pixels, ka=None): t = utils.totals(pixels) m = utils.maxima(t) ka = ka or utils.k_alpha(t[m]) m &= (abs(t - ka) < .15*ka) return utils.boxes(m, pixels)
def boxes(pixels, ka=None): t = utils.totals(pixels, n=3) m = utils.maxima(pixels, n=2)[..., 1:-1, 1:-1] ka = ka or utils.k_alpha(t[m]) m &= (abs(t - ka) < .15 * ka) return utils.boxes(m, pixels, n=3)