Untitled
unknown
plain_text
a year ago
286 B
4
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