基於位置列表的索引方法

下面利用ix_()函數將萊娜照片中的像素完全打亂。 import scipy.misc import matplotlib.pyplot as plt import numpy as np face = scipy.misc.face() xmax = face.shape[0] ymax = face.shape[1] #1.打亂數組的索引 #我們用numpy.random子程序包中的shuff
相關文章
相關標籤/搜索