




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、 Digital Image Processing Project chapter: Chapter 6 Project number: Proj06-01 Proj06-04 Students name: Students number: Class: 1ContentsWEB-SAFE COLORS .2PSEUDO-COLOR IMAGE PROCESSING.2COLOR IMAGE ENHANCEMENT BY HISTOGRAM PROCESSING.5COLOR IMAGE SEGMENTATION.72Web-Safe ColorsExp. 20,PROJECT 06-01 O
2、bjective To know what are Web-safe colors, how to generate the RGB components for a given jpeg color image, or convert an image to RGB manually?Requirements(a) Write a computer program that converts an arbitrary RGB color image to a web-safe RGB image (see Fig. 6.10 for a definition of web-safe colo
3、rs).(b) Download the image in Fig. 6.8 and convert it to a web-safe RGB color image. Figure 6.8 is given in jpg format, so convert your result back to jpg (see comments at the beginning of this project).Figure 1 Fig6.08.jpg1Technical discussion【1】B = fix(A) rounds the elements of A toward zero, resu
4、lting in an array of integers.For complex A, the imaginary and real parts are rounded independently.【2】imwrite(A,filename,fmt) writes the image A to the file specified by filename in the format specified by fmt.Program listingsI=imread(Fig6.08.jpg);subplot(131);imshow(I);title(original); I1=fix(I/51
5、)*51);subplot(132);imshow(I1);title(web-safe colors(jpg); imwrite(I1,web-safe colors.jpeg,jpeg);subplot(133);I=imread(web-safe colors.jpeg);imshow(I);title(web-safe colors(jpeg);2Discussion of results originalweb-safe colors(jpg)web-safe colors(jpeg)Figure 2 results of project 06-013 Pseudo-Color Im
6、age ProcessingExp. 21,PROJECT 06-02ObjectiveTo know when the highpass filtering Hhp(u,v) can be obtained by using the relation 1-Hlp(u,v).Requirements(a) Implement Fig. 6.23, with the characteristic that you can specify two ranges of gray-level values for the input image and your program will output
7、 an RGB image whose pixels have a specified color corresponding to one range of gray levels in the input image, and the remaining pixels in the RGB image have the same shade of gray as they had in the input image. (b) Download the image in Fig. 6.22(a) and process it with your program so that the ri
8、ver appears yellow and the rest of the pixels are the same shades of gray as in the input image. Figure 3 Fig6.22(a).jpg4Technical discussion【1】RGB componentsrgb_R=I(:, :, 1);rgb_G=I(:, :, 2);rgb_B=I(:, :, 3);Program listingsI=imread(Fig6.22(a).jpg);subplot(121);imshow(I);title(original);I=double(I)
9、;m,n=size(I);L=256;for i=1:m for j=1:n if I(i,j)L/4 R(i,j)=0; G(i,j)=4*I(i,j); B(i,j)=L; else if I(i,j)=L/2 R(i,j)=0; G(i,j)=L; B(i,j)=-4*I(i,j)+2*L; else if I(i,j)r1_u-1.25*r1_d)&(rr1_u+1.25*r1_d);r2(ind)=1; subplot(222);imshow(r2);title(segmentation); subplot(234);imshow(r);10title(R component); subplot(235);imshow(g);title(G component); subplo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 企業代理記賬合同樣本
- 《藝術館課件設計與營銷策略》
- 2025的民間個人標準借款合同
- 合同工與正式工權益對比分析
- 樂高新員工培訓
- 牛頭刨床安全培訓
- 第一學期蘇教版五年級數學上冊期末復習計劃
- 第二單元第10課二、《路徑與選定區域的轉換》教學設計 2023-2024學年人教版初中信息技術七年級下冊
- 冰雪旅游市場動向與未來發展前景分析
- 學校幫扶結對活動方案
- 福建省普通高中學生綜合素質評價實施辦法
- 幼兒園教學課件《神奇的色彩女王 》課件
- HIS使用說明書
- 高強螺栓螺母墊圈重量一覽表
- 廣東省醫療廣告審查申請表
- 雪絨花(簡譜)
- 水印輥安裝使用指南
- 基坑支護監理質量評估報告
- 樓板裂縫鑒定報告(范本)
- PANTONE潘通色卡C卡
- 特殊過程及關鍵工序界定(共32頁)
評論
0/150
提交評論