【正文】
%保存圖片 % function m_file_exit_Callback(hObject, eventdata, handles) % hObject handle to m_file_exit (see GCBO) 27 % eventdata reserved to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) close()。%獲得全路徑的另一種 方法 end img_src=getappdata(,39。Pick an Image39。39。,39。img_src39。 fpath=[pathname filename]。Pick an image39。*.*39。*.jpeg39。 % function m_file_open_Callback(hObject, eventdata, handles) % hObject handle to m_file_open (see GCBO) % eventdata reserved to be defined in a future version of MATLAB 26 % handles structure with handles and user data (see GUIDATA) [filename, pathname] = uigetfile( ... {39。db139。image(wcodemat(V,192))。image(wcodemat(A,192))。,cD,39。db139。,1)。 H=upcoef2(39。a39。 %真彩色圖像轉(zhuǎn)化為灰度圖像 [cA,cH,cV,cD]=dwt2(x,39。 % function m_image_xb_Callback(hObject, eventdata, handles) % hObject handle to m_image_xb (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) img_src=getappdata(,39。%對(duì)圖像進(jìn)行傅立葉變換 B=fftshift(C)。img_src39。%對(duì)圖像進(jìn)行傅立葉變換 B=fftshift(img_src)。img_src39。 % UIWAIT makes tuxiang wait for user response (see UIRESUME) % uiwait()。 end if nargout [varargout{1:nargout}] = gui_mainf(gui_State, varargin{:})。, [])。, tuxiang_OutputF, ... 39。, gui_Singleton, ... 39。 gui_State = struct(39。,39。 圖像進(jìn)入界面源代碼 function varargout = tuxiang(varargin) % TUXIANG MATLAB code for % TUXIANG, by itself, creates a new TUXIANG or raises the existing % singleton*. % % H = TUXIANG returns the handle to a new TUXIANG or the handle to % the existing singleton*. % % TUXIANG(39。 d=idwt2(cA,cH,cV,cD,39。image(wcodemat(D,192))。 title(39。水平細(xì)節(jié)系數(shù) 39。)。 %圖像編碼 figure subplot(221)。d39。,cV,39。db139。,1)。 %對(duì)圖像進(jìn)行單層分解,小波為 bd1 A=upcoef2(39。 x=rgb2gray(i)。)。 figure。 imshow(log(abs(B)+1),[])。 title(39。%對(duì)圖像進(jìn)行傅立葉變換 B=fftshift(fft2(double(I)))。39。兩周的課程設(shè)計(jì)很短暫,但其間的內(nèi)容是很充實(shí)的,在其中我學(xué)習(xí)到了很多平時(shí)書(shū)本中無(wú)法學(xué)到的東西,積累了經(jīng)驗(yàn),鍛煉了自己分析問(wèn)題,解決問(wèn)題的能力,并學(xué)會(huì)了如何將所學(xué)的各科知識(shí)融會(huì),組織,來(lái)配合學(xué)習(xí),為以后的發(fā)展打下堅(jiān)實(shí)的基礎(chǔ) 19 參考文獻(xiàn) [1] 黃維通 .Visual C++面向?qū)ο笈c可視化程序設(shè)計(jì) .清華大學(xué)出版社 ,20xx [2] R , R , S L. Eddins 著 ,阮秋琦 ,阮宇智等譯 .計(jì)算機(jī)圖象處理(MATLAB 版 ).北京 :電子工業(yè)出版社 ,20xx [3] . 計(jì)算機(jī)圖象處理 .北京 :電子工業(yè)出版社 ,20xx [4] 章毓晉 .圖像處理與分析 圖像工程(上冊(cè)) ,清華大學(xué) ,20xx [5] 何斌等編著 .Visual C++計(jì)算機(jī)圖象處理 .人民郵電出版社 ,20xx [6] R , R ,阮秋琦 ,阮宇智等譯 .計(jì)算機(jī)圖象處理 (第 2版 ).北京 :電子工業(yè)出版社 ,20xx [7] 張宏林編著 .Visual C++計(jì)算機(jī)圖象模式識(shí)別技術(shù)及工程實(shí)踐 .人民郵電出版社 ,20xx. 致 謝 這次綜合訓(xùn)練中我學(xué)到了很多東西,真正做到了 理論與實(shí)踐相結(jié)合,得到了軟件工程的綜合訓(xùn)練, 大大地提高了 解決實(shí)際問(wèn)題的能力, 這與老師的指導(dǎo)和同學(xué)們的幫助是分不開(kāi)的。 在這次的綜合訓(xùn)練中我認(rèn)識(shí)到了自己的不足。 圖 ww 反傅里葉變換圖 12 ( 3)圖象進(jìn)行直接變換頻譜處理,如圖 所示。 3.縮小搜索范圍:與第二種方法相近。