示例#1
0
def f_gauss2d_no_bg(p, X, Y):
    """2D Gaussian model function with linear background - parameter vector [A, x0, y0, sigma, background, lin_x, lin_y]"""
    A, x0, y0, s = p
    r = genGauss(X, Y, A, x0, y0, s, 0, 0,
                 0)  #this is coded in c and defined in gauss_app
    return r
示例#2
0
def Gauss2D(Xv, Yv, A, x0, y0, s):
    from PYME.localization.cModels.gauss_app import genGauss
    r = genGauss(Xv, Yv, A, x0, y0, s, 0, 0, 0)
    return r
示例#3
0
def Gauss2D(Xv, Yv, A, x0, y0, s):
    from PYME.localization.cModels.gauss_app import genGauss
    r = genGauss(Xv, Yv, A, x0, y0, s, 0, 0, 0)
    #r.strides = r.strides #Really dodgy hack to get around something which numpy is not doing right ....
    return r