【正文】
ils on image number 4 of subject 17) gui_Singleton = 1。gui_Singleton39。gui_OutputF39。gui_Callback39。 ischar(varargin{1}) = str2func(varargin{1})。 % Update handles structure guidata(hObject, handles)。 train_img = 200。 form_bin_num = 29。 global total_sub train_img sub_img max_hist_level bin_num form_bin_num。 for Z=1:1:total_sub for X=1:2:sub_img %%%train on odd number of images of each subject I = imread( strcat(39。,int2str(X),39。 for i=1:1:rows for j=1:1:cols if( I(i,j) == 0 ) train_hist_img(max_hist_level, K) = train_hist_img(max_hist_level, K) + 1。 sum = 0。 K = K + 1。 end display (39。 train_processed_bin。train39。 for i=1:1:rows for j=1:1:cols if( I(i,j) == 0 ) test_hist_img(max_hist_level) = test_hist_img(max_hist_level) + 1。 K = 1。 sum = 0。 40 K = 1。 K = K + 1。S39。\39。 if (subjectindex == M) axes () 41 %image no: 5 is shown for visualization purpose imshow(imread(STRCAT(39。))) msgbox ( 39。Error== Testing Image of Subject 39。ORL\S39。Incorrectly Recognized39。) % function box_Callback(hObject, eventdata, handles) % hObject handle to box (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,39。)) returns contents of box as a double 42 % % Executes during object creation, after setting all properties. function box_CreateF(hObject, eventdata, handles) % hObject handle to box (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles empty handles not created until after all CreateFs called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc amp。), get(0,39。,39。*.bmp39。 axes() 43 imgpath=STRCAT(pathname,filename)。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept it. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. 44 Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. If you are being repr。 imshow(I) % % Executes during object creation, after setting all properties. function axes3_CreateF(hObject, eventdata, handles) % hObject handle to axes3 (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles empty handles not created until after all CreateFs called % Hint: place code in OpeningF to populate axes3 %Programmed by Usman Qayyum g an employment tribunal claim Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: ? you don39。Test Image39。)。)) set(hObject,39。 isequal(get(hObject,39。) returns contents of box as text % str2double(get(hObject,39。 end display(39。\39。 matches with the image of subject 39。)。,num2str(M),39。 getString_end=getString_end(end)1。 getString_start=getString_start(end)+1。 M = ceil(M/5)。 end img_bin_hist_sum(K,1) = sum。 end end test_processed_bin(K) = sum/bin_num。 test_processed_bin(K) = sum/bin_num。 39 end end end [r c] = size(test_hist_img)。 test_processed_bin(form_bin_num) = 0。 global train_processed_bin。) save 39。 else sum = sum + train_hist_img(j,i)。 for j=1:1:r if( (mod(j,bin_num)) == 0 ) sum = sum + train_hist_img(j,i)。 end end end K = K + 1。) )。,int2str(Z),39。 K = 1。 % hObject handle to figure % eventdata reserved to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default mand line output from handles structure varargout{1} = 。 max_hist_level = 256。 global total_sub train_img sub_img max_hist_level bin_num form_bin_num。 else gui_mainf(gui_State, varargin{:})。 if nargin amp。gui_LayoutF39。gui_OpeningF39。gui_Name39。 最后,我要感謝我的父母和家人,他們這么多年來一直給我以無私的關愛和支持,濃濃的親情和期盼都是我學習的動力和源泉。 29 致謝 在 大學的學習生活即將結束,在做畢業(yè)設計的這段時間里,我的老師、同學、朋友和家人給予了我無微不至的關心,毫無保 留的指導和耐心細致的幫助,借此畢業(yè)論文完成之際,謹向他們致以我最真誠的感謝! 首先,我衷心感謝我的導師 林森 老師。 關于“人臉識別”,在了解了人臉識別的各種方法后,選擇了圖像直方圖差值比較進行了實現(xiàn)。 該系統(tǒng)的主要功能模塊共有二個:( 1)數(shù)字圖像處理的基本方法;( 2)人臉識別。 第一,每個灰度級的頻率是計算并存儲在媒介作進一步處理。 人臉識別的 matlab 實現(xiàn) 實現(xiàn)結果如圖 和 圖 用戶界面 圖 實現(xiàn)結果 27 本章小結 在過去十年中基于直方圖方法證其明簡單性和有用性。 26 第四章 基于直方圖的人臉識別實現(xiàn) 識別理論 用灰度直方圖增強圖像對比度是基于圖像灰度值統(tǒng)計的一種重要方法 ,它以概率論為基礎的 ,常用的實現(xiàn)算法主要是直方圖均衡化和直方圖規(guī)定化。所以,和灰度變換及濾波去噪部分的設計思路相同,在仿真系統(tǒng)中,筆者給出了 canny、 sobel、 log、prewitt 四種算子在不同灰度閾值下、不同方向的邊緣檢測算法,使用者可從檢測結果中加以比較、選擇合適的算法。故在仿真系統(tǒng)中提供了三種灰度變換效果比較及選擇界面,用戶可根據(jù)需要選用。這一過程,也被稱作灰度歸一化。 ( 3)自適應濾波自適應濾波能夠根據(jù)圖像的 局部方差來調(diào)整濾波器的輸出,其濾波效果要優(yōu)于線性濾波,同時可以更好地保存圖像的邊緣和高頻細節(jié)信息??紤]濾波模板大