def opp_convert(arr):
    #assert(arr.min()>=0 and arr.max()<=1)
    out = np.empty_like(arr)

    # red-green
    out[:,:,0] = arr[:,:,0] - arr[:,:,1]
    # blue-yellow
    out[:,:,1] = arr[:,:,[0,1]].min(2) - arr[:,:,2]
    # intensity
    out[:,:,2] = arr.max(2)

    return out

# ------------------------------------------------------------------------------
dataset/ETHPy150Open bolme/pyvision/src/pyvision/features/v1like.py/opp_convert/swapped operands of `-`