Untitled

Anonymous
plain_text
05/16/2024 1:54 PM
384 B
14
Indexable
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
Editor is loading...
Leave a Comment