【发布时间】:2021-02-01 17:58:33
【问题描述】:
X2d = np.array([[255,255,255,255],
[255,255,255,255],
[255,255,255,255],
[255,255,255,255]])
# I want to give it information about right, up, width, height where I want to manipulate it
# for example (1, 1, 2, 2)
# and I would like to get these two:
X2dresult = np.array([[255,255,255,255],
[255, 0, 0,255],
[255, 0, 0,255],
[255,255,255,255]])
我想在更高的维度上做类似的事情。
【问题讨论】:
标签: python arrays image numpy image-processing