Matlab實現簡單的人臉識別程序

clear all; close all; F = imread(‘face9.jpg’); F = rgb2gray(F); % 將圖像轉化爲灰度圖 level = graythresh(F); BW = im2bw(F,level); % 將圖像二值化 [n1 n2] = size(BW); H = floor(n1/10); % 將圖像分割成10個快 W = floor(n2/10); h1
相關文章
相關標籤/搜索