1

Similar documents
游戏攻略大全(五十二).doc

游戏攻略大全(五十一).doc

¨Æ·~½g¡ã¾·~¤ÀÃþ

% 25% (i) 95% 96,290,900 (ii) 99.9% 17,196,000 (iii) 99.9% 89,663,100 2

Microsoft Word - om388-rnt _excl Items 16 & 38_ _final_for uploading_.doc

國立中山大學學位論文典藏.PDF

Microsoft Word mpc-min-chi.doc

( ) 1

穨cwht.PDF

900502_Oasis.indb

bnb.PDF

untitled

Microsoft Word _4

郑州大学(下).doc

厨房小知识(六)

广 东 纺 织 职 业 技 术 学 院 发 展 党 员 公 示 制 实 施 办 法 关 于 推 荐 优 秀 团 员 作 为 党 的 发 展 对 象 工 作 的 意 见 后 勤 管 理 工 作 广 东 纺 织 职 业 技 术 学 院 新 引 进 教 职 工 周 转 房 管 理


游戏攻略大全(五十).doc

金融英语证书考试大纲


健康知识(二)

中南财经大学(二).doc

广西大学(一).doc

根据学校教学工作安排,2011年9月19日正式开课,也是我校迁址蓬莱的第一学期开学

山东大学(一).doc

2

主 编 : 杨 林 副 主 编 : 张 新 民 邹 兰 曹 纯 纯 周 秋 婷 李 雅 清 黄 囡 囡 评 审 顾 问 : 杨 林 张 新 民 评 审 : 张 新 民 邹 兰 曹 纯 纯 周 秋 婷 李 雅 清 黄 囡 囡 李 忆 萍 徐 如 雪 文 字 编 辑 : 曹 纯 纯 邹 兰 李 雅 清

最新文物管理执法全书(十四).doc

园林常识(二).doc

前 言 二 一 六 年 四 月 四 日, 兒 童 節, 誕 生 了 一 件 美 事 : 中 國 作 家 曹 文 軒 在 意 大 利 博 洛 尼 亞 國 際 童 書 展 榮 獲 國 際 安 徒 生 文 學 獎, 是 該 獎 創 設 六 十 年 來, 第 一 位 摘 桂 的 中 國 作 家, 意 義 重

湖 南 科 技 大 学

上海外国语大学(二).doc

2009 陳 敦 德

切 实 加 强 职 业 院 校 学 生 实 践 能 力 和 职 业 技 能 的 培 养 周 济 在 职 业 教 育 实 训 基 地 建 设 工 作 会 议 上 的 讲 话 深 化 教 育 教 学 改 革 推 进 体 制 机 制 创 新 全 面 提 高 高 等 职 业 教 育 质 量 在

鸽子(三)

兽药基础知识(四)

园林植物卷(十).doc

园林植物卷(十七).doc

临床手术应用(三)

家装知识(二十)

医疗知识小百科

家庭万事通(一)

家装知识(三)

园林绿化(一)

园林植物卷(十五).doc

最新监察执法全书(一百五十).doc

兽药基础知识(三)

奥运档案(四).doc

最新监察执法全书(五十).doc

最新执法工作手册(三百八十四)

中华美食大全4

动物杂谈_二_.doc

抗非典英雄赞歌(三)

新时期共青团工作实务全书(三十五)

经济法法律法规第十九卷

游戏攻略大全(五十九).doc

火灾安全实例

兽药基础知识(七)

实用玉米技术(二)

中国政法大学(一).doc

水产知识(一)

招行2002年半年度报告全文.PDF

(Microsoft Word - outline for Genesis 9\243\2721\243\25529.doc)

穨Shuk-final.PDF

2

公務員懲戒法實務及新制

大小通吃-糖尿病


98825 (Project Sunshine) Chi_TC_.indb

Microsoft Word - 放榜用-105無口試放榜電子榜單_NEW_.doc

Microsoft Word - 永康市衛生所--黃琬珺.doc

九十一學年度技術校院四年制與專科學校二年制統一入學測驗簡章(草案)

untitled

Basic Properties of Digital Images

广西师范学院(下)

女性减肥健身(二).doc

临床手术应用(四)

色 位 於 直 角 座 標 系 的 原 點 上, 白 色 則 位 於 距 原 點 最 遠 的 頂 點 上, 以 黑 色 至 白 色 位 置 之 間 的 線 段 (Gray scale) 表 示 灰 階 值 的 變 化, 愈 接 近 黑 色 的 線 段 位 置, 灰 階 值 愈 小, 反 之 則 愈

通州区、密云县、大兴区(一)

項 訴 求 在 考 慮 到 整 體 的 財 政 承 擔 以 及 資 源 分 配 的 公 平 性 下, 政 府 採 取 了 較 簡 單 直 接 的 一 次 性 減 稅 和 增 加 免 稅 額 方 式, 以 回 應 中 產 家 庭 的 不 同 訴 求 ( 三 ) 取 消 外 傭 徵 費 6. 行 政 長

(f) (g) (h) (ii) (iii) (a) (b) (c) (d) 208


Microsoft Word - 08 单元一儿童文学理论

南華大學數位論文

Microsoft Word 一年級散文教案.doc

米食天地教案

第32回独立行政法人評価委員会日本貿易保険部会 資料1-1 平成22年度財務諸表等

untitled

第三章

nb.PDF

bnbqw.PDF

1. 本文首段的主要作用是 A. 指出 異蛇 的藥用功效 說明 永之人爭奔走焉 的原因 B. 突出 異蛇 的毒性 為下文 幾死者數矣 作鋪墊 C. 交代以蛇賦稅的背景 引起下文蔣氏有關捕蛇的敘述 2. 本文首段從三方面突出蛇的 異 下列哪一項不屬其中之一 A. 顏色之異 B. 動作之異 C. 毒性之

Microsoft Word - 發布版---規範_全文_.doc

概 述 随 着 中 国 高 等 教 育 数 量 扩 张 目 标 的 逐 步 实 现, 提 高 教 育 质 量 的 重 要 性 日 益 凸 显 发 布 高 校 毕 业 生 就 业 质 量 年 度 报 告, 是 高 等 学 校 建 立 健 全 就 业 状 况 反 馈 机 制 引 导 高 校 优 化 招

鱼类丰产养殖技术(二).doc

疾病诊治实务(一)

名人养生.doc

<4D F736F F D2040B9C5B871A661B0CFABC8AE61C2A7AB55ACE3A8735FA7F5ABD8BFB3B9C5B871A661B0CFABC8AE61C2A7AB55ACE3A8732E646F63>


中老年保健必读(十).doc

Transcription:

守大學電機系 電腦視覺 報告 單元一 數位影像 : 格式和操作 參考解答 MIAT( 機器智慧與自動化技術 ) 實驗室 中華民國 93 年 9 月 29 日

1. (a) 如果指紋影像 finger300x300 的取像面積是 14(mm)x14(mm), 請計算取像系統的 dpi (b) 如果 kaoshiung512x512 遙測影像的覆蓋面積是 5(Km)x5(Km), 請計算該影像的解析度 (resolution), 亦即每一 pixel 表示多大面積? (a) Dots Per Inch. A measure of the resolution of a printer, scanner, or monitor. It refers to the number of dots in a one-inch line. The more dots per inch, the higher the resolution. If a printer is said to print at 300 dpi, it will be capable of printing 300 dots horizontally and 300 dots vertically over a square inch. 14mm = 1.4cm/2.54(cm/inch) = 0.55 inch DPI : 300 pixels/0.55 inch 545(dpi) (b) (1). The resolution of a sensor is a measure of what size of objects it can image. Resolution is commonly expressed as the most closely spaced lines which can be recognised as being distinct. (2). The amount of pixels that are displayed on a screen measured in pixels horizontal by pixels vertical, such as 1024 x 768. Resolution : 5000(m)/512(pixel) 10(m/pixel) or Resolution : 10 x 10 (m 2 /pixel)

2. 請寫一程式, 將 ant(gray)600x400 影像作水平鏡射和垂直鏡射 Source Code: #include<fstream.h> void main(void) ifstream in("ant(gray)600x400.raw",ios::binary); ofstream out_h("ant(gray)600x400_horizontal.raw",ios::binary); ofstream out_v("ant(gray)600x400_vertical.raw",ios::binary); ima.initialize(400,600); for(int i=0;i<ima.nr;i++)for(int j=ima.nc-1;j>=0;j--) out_h<<ima.m[i][j]; for(int i=ima.nr-1;i>=0;i--)for(int j=0;j<ima.nc;j++) out_v<<ima.m[i][j]; (a) (b) (c) (a) 原始影像 ant(gray)600x400.raw (b) 水平鏡射 ant(gray)600x400_horizontal.raw (c) 垂直鏡射 ant(gray)600x400_vertical.raw

3. 將 finger300x300 第 100 row 的剖面資料取出, 在 Excel 當中畫出其曲線圖 Source Code: #include<fstream.h> void main(void) ifstream in("finger300x300.raw",ios::binary); ofstream out("finger300x300_100row.xls"); ima.initialize(300,300); for(int j=0;j<ima.nc;j++) out<<(int)ima.m[100][j]<<endl;

Gray value 250 200 150 100 50 0 1 51 101 151 201 251 100 Row finger300x300 第 100 row 的剖面資料 4. 在 finger300x300 影像上畫兩條對角線 ( 將線上的 pixel 值設為 255) Source Code: #include<fstream.h> void main(void) ifstream in("finger300x300.raw",ios::binary); ofstream out("finger300x300_1.raw",ios::binary); ima.initialize(300,300); if(i==j i==299-j) out<<(unsigned char)255; else out<<ima.m[i][j];

(a) (b) (a) 原始影像 finger300x300.raw (b) 畫兩條對角線影像 finger300x300_1.raw 5. 取出 ant(gray)600x400 左上角 8x8 pixels 的數值資料存檔, 再用 Excel 呈現資料表 Source Code:

#include<fstream.h> void main(void) ifstream in("ant(gray)600x400.raw",ios::binary); ofstream out("ant(gray)600x400_8x8pixels.xls"); ima.initialize(8,8); for(int i=0;i<8;i++) for(int j=0;j<8;j++) out<<(int)ima.m[i][j]<<"\t"; out<<endl; ant(gray)600x400 左上角 8x8 pixels 的數值資料 135 136 138 137 138 138 137 137 138 137 139 139 138 140 139 140 140 139 139 139 141 141 141 140 141 141 141 142 142 141 142 142 142 142 142 141 141 141 142 143 143 143 143 143 143 142 142 142 142 142 143 143 144 144 144 144 143 143 144 144 145 145 145 145 6. 改變 ant(gray)600x400 影像灰階分布, 將小於 140 的灰階值全設為 0, 將大於 203 的灰階值全設 為 255, 最後將 140-203 灰階值分布平均擴展至 0-255

Source Code: #include<fstream.h> void main(void) ifstream in("ant(gray)600x400.raw",ios::binary); ofstream out("ant(gray)600x400_1.raw",ios::binary); ima.initialize(400,600); if(ima.m[i][j]<140) ima.m[i][j]=0; else if(ima.m[i][j]>203) ima.m[i][j]=255; else ima.m[i][j]=(ima.m[i][j]-140)*255/63; out<<ima.m[i][j]; (a) (b) (a) 原始影像 ant(gray)600x400.raw (b) 處理後影像 ant(gray)600x400_1.raw 7. 請找出一個最佳的 threshold 對 kaoshiung512x512 遙測影像作二值化 Source Code: 尋找影像灰階分布圖

#include<fstream.h> void main(void) ifstream in("kaoshiung512x512.raw",ios::binary); ofstream out("histogram.txt"); ima.initialize(512,512); int histo[256]; for(int i=0;i<256;i++) histo[i]=0; histo[ima.m[i][j]]++; out<<"gray\thistogram\n"; for(int i=0;i<256;i++)out<<i<<"\t"<<histo[i]<<endl; 25000 20000 15000 10000 5000 0 0 50 100 150 200 250 kaoshiung512x512.raw 灰階分布圖 Source Code: 以 150 做為 threshold 將影像二值化

#include<fstream.h> void main(void) ifstream in("kaoshiung512x512.raw",ios::binary); ofstream out("kaoshiung512x512_bw.raw",ios::binary); ima.initialize(512,512); if(ima.m[i][j]<150) out<<(unsigned char)0; else out<<(unsigned char)255; (a) (b)

8. 輸出指紋影像 finger300x300 的 8 個 bit-planes for(int i=0;i<ima.nr;i++) for(int j=0;j<ima.nc;j++) ima.m[i][j]=imain.get(); unsigned char c=((ima.m[i][j])%2)*255; imaoutbit1<<c; c=((ima.m[i][j]>>1)%2)*255; imaoutbit2<<c; c=((ima.m[i][j]>>2)%2)*255; imaoutbit3<<c; c=((ima.m[i][j]>>3)%2)*255; imaoutbit4<<c; c=((ima.m[i][j]>>4)%2)*255; imaoutbit5<<c; c=((ima.m[i][j]>>5)%2)*255; imaoutbit6<<c; c=((ima.m[i][j]>>6)%2)*255; imaoutbit7<<c; c=((ima.m[i][j]>>7)%2)*255; imaoutbit8<<c; (a) 原始影像

(b) bit-plane7 (c) bit-plane6 (d) bit-plane5 (e) bit-plane4 (f) bit-plane3 (g) bit-plane2 (h) bit-plane1 (i) bit-plane0 9. 將 kaoshiung512x512 影像 down-sampling 1/4 倍輸出 Source Code:

#include<fstream.h> void main() ifstream in("kaoshiung512x512.raw",ios::binary); ofstream out("kaoshiung128x128.raw",ios::binary); ima.initialize(512,512); for(int i=0;i<ima.nr;i=i+4)for(int j=0;j<ima.nc;j=j+4) out<<ima.m[i][j]; (a) (b) (a) 原始影像 kaoshiung512x512.raw (b)down-sampling 1/4 影像 kaoshiung128x128.raw