Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
286 B
1
Indexable
Never
def transform_image(img):
    s = (a.sum(axis=0)[::-1]>0).tolist()
    if True in s:
        ss = s.index(True)

    ss
    z = np.zeros(a.shape)
    z[:,ss:] += a[:,:-ss]
    
    aa=a+np.random.normal(0,0.05,a.reshape(-1).shape[0]).reshape(a.shape)

    return a.T[::-1],a[::-1,],z,aa
Leave a Comment