标签: python numpy matrix geometry
设A为3x3矩阵(黑白像素):
A = np.matrix([[0, 0, 0], [0, 1, 1], [0, 0, 1]])
对应
0 0 0 0 1 1 0 0 1
如何以中心为矩阵的中间“1”进行90°旋转?