img_1 = np.arange(25).reshape(5,5)
img_2 = img_1
locs = np.where(img_2 >= 0)
img_2[locs] = [65000]
Wondering is there an way to have img_1
with initial array and only img_2
will will be modified?
Both img_1
and img_2
array is changing.