Example #1
0
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)
Example #2
0
File: qratio.py Project: dlaw/psf
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)
Example #3
0
File: dratio.py Project: dlaw/psf
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)
Example #4
0
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)