【无标题】PCA 人脸图片降维与重构
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import matplotlib.cm as cmx
import matplotlib.colors as colors
def get_data_matrix():
img = Image.open('D:/database/ORL_dataset/s1/1.pgm')
img_matrix = np.zeros((15, img.wid
原创
2022-03-30 20:24:09 ·
3791 阅读 ·
0 评论