Implemented BFS, DFS and A* To compile this project, use the following command: g++ -o search main.cpp Then you can run it: ./search The input is loaded from a input file in.txt Here is the format of the input file: The first line of the input file shoud contain two chars indicate the source and destination city for breadth first and depth first algorithm. The second line of input file shoud be an integer m indicate the number of connections for the map. Following m lines describe the map, each line represents to one connection in this form: dist city1 city2, which means there is a connection between city1 and city2 with the distance dist. The following input are for A* The following line contains two chars indicate the source and destination city for A* algorithm. Then there is an integer h indicate the number of heuristic. The following h lines is in the form: city dist which means the straight-line distance from the city to B is dist.
標(biāo)簽: Implemented following compile command
上傳時(shí)間: 2014-01-01
上傳用戶:lhc9102
1.24位真彩色->256色灰度圖。 2.預(yù)處理:中值濾波。 3.二值化:用一個(gè)初始閾值T對圖像A進(jìn)行二值化得到二值化圖像B。 初始閾值T的確定方法是:選擇閾值T=Gmax-(Gmax-Gmin)/3,Gmax和Gmin分別是最高、最低灰度值。 該閾值對不同牌照有一定的適應(yīng)性,能夠保證背景基本被置為0,以突出牌照區(qū)域。 4.削弱背景干擾。對圖像B做簡單的相鄰像素灰度值相減,得到新的圖像G,即Gi,j=|Pi,j-Pi,j-1|i=0,1,…,439 j=0,1,…,639Gi,0=Pi,0,左邊緣直接賦值,不會(huì)影響整體效果。 5.用自定義模板進(jìn)行中值濾波 區(qū)域灰度基本被賦值為0。考慮到文字是由許多短豎線組成,而背景噪聲有一大部分是孤立噪聲,用模板(1,1,1,1,1)T對G進(jìn)行中值濾波,能夠得到除掉了大部分干擾的圖像C。 6.牌照搜索:利用水平投影法檢測車牌水平位置,利用垂直投影法檢測車牌垂直位置。 7.區(qū)域裁剪,截取車牌圖像。
上傳時(shí)間: 2014-01-08
上傳用戶:songrui
A book about Java I/O
上傳時(shí)間: 2015-09-05
上傳用戶:秦莞爾w
Otsu-最大類間方差Matlab代碼 最大類間方差法原理:最大類間方差法是由日本學(xué)者大津于1979年提出的,是一種自適應(yīng)的閾值確定的方法,又叫大津法,簡稱OTSU。它是按圖像的灰度特性,將圖像分成背景和目標(biāo)2 部分。背景和目標(biāo)之間的類間方差 % 大,說明構(gòu)成圖像的2 部分的差別越大,當(dāng)部分目標(biāo)錯(cuò)分為背景或部分背景錯(cuò)分為目標(biāo)都會(huì)導(dǎo)致2 部 % 分差別變小。
標(biāo)簽: Matlab Otsu 1979 OTSU
上傳時(shí)間: 2015-09-05
上傳用戶:shanml
本書將帶領(lǐng)讀者從基本的系統(tǒng)使用、網(wǎng)路伺服器架設(shè)、到深入系統(tǒng)管理所需的知識,並將筆者在管理公司及學(xué)校伺服器的經(jīng)驗(yàn)和讀者分享,期望對有心學(xué)習(xí) FreeBSD 的使用者有所助益。
上傳時(shí)間: 2015-09-06
上傳用戶:wangzhen1990
主要是我最近兩月在公司通過百度學(xué)習(xí)的內(nèi)容,有AJAX,DWR,JAVA實(shí)現(xiàn)文件的上傳和下載.主要目的在與告訴大家一個(gè)成功程序員(JAVA)是如何學(xué)習(xí)的,需要學(xué)習(xí)什么內(nèi)容.以及學(xué)習(xí)的態(tài)度.
上傳時(shí)間: 2015-09-06
上傳用戶:lvzhr
這是一個(gè)肥胖度測試的程序,是用jcreator編寫的,數(shù)據(jù)庫設(shè)置和其它有關(guān)配置及功能說明請看用戶使用手冊
上傳時(shí)間: 2015-09-06
上傳用戶:erkuizhang
performs one of the matrix-vector operations y := alpha*A*x + beta*y, or y := alpha*A *x + beta*y, where alpha and beta are scalars, x and y are vectors and A is an m by n matrix
標(biāo)簽: alpha beta matrix-vector operations
上傳時(shí)間: 2014-08-17
上傳用戶:qlpqlq
為了下載只好把 無聊的十進(jìn)位轉(zhuǎn)二進(jìn)位上傳
標(biāo)簽:
上傳時(shí)間: 2013-12-25
上傳用戶:1079836864
在S3C2410平臺上做視頻顯示源碼,可以顯示圖片,觸碰螢?zāi)粫?huì)顯示座標(biāo)等
標(biāo)簽: S3C2410
上傳時(shí)間: 2014-01-25
上傳用戶:戀天使569
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1