def alpha_for_triangle(points,m,n):
    """ Creates alpha map of size (m,n) 
        for a triangle with corners defined by points
        (given in normalized homogeneous coordinates). """
    
    alpha = zeros((m,n))
    for i in range(min(points[0]),max(points[0])):
        for j in range(min(points[1]),max(points[1])):
            x = linalg.solve(points,[i,j,1])
            if 0 > min(x): #all coefficients positive
                alpha[i,j] = 1
    return alpha
dataset/ETHPy150Open jesolem/PCV/PCV/geometry/warp.py/alpha_for_triangle/swapped operands of `>`