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.
標簽: Implemented following compile command
上傳時間: 2014-01-01
上傳用戶:lhc9102
1.24位真彩色->256色灰度圖。 2.預處理:中值濾波。 3.二值化:用一個初始閾值T對圖像A進行二值化得到二值化圖像B。 初始閾值T的確定方法是:選擇閾值T=Gmax-(Gmax-Gmin)/3,Gmax和Gmin分別是最高、最低灰度值。 該閾值對不同牌照有一定的適應性,能夠保證背景基本被置為0,以突出牌照區(qū)域。 4.削弱背景干擾。對圖像B做簡單的相鄰像素灰度值相減,得到新的圖像G,即Gi,j=|Pi,j-Pi,j-1|i=0,1,…,439 j=0,1,…,639Gi,0=Pi,0,左邊緣直接賦值,不會影響整體效果。 5.用自定義模板進行中值濾波 區(qū)域灰度基本被賦值為0。考慮到文字是由許多短豎線組成,而背景噪聲有一大部分是孤立噪聲,用模板(1,1,1,1,1)T對G進行中值濾波,能夠得到除掉了大部分干擾的圖像C。 6.牌照搜索:利用水平投影法檢測車牌水平位置,利用垂直投影法檢測車牌垂直位置。 7.區(qū)域裁剪,截取車牌圖像。
上傳時間: 2014-01-08
上傳用戶:songrui
SimMetrics is a Similarity Metric Library, e.g. from edit distance s (Levenshtein, Gotoh, Jaro etc) to other metrics, (e.g Soundex, Chapman). Work provided by UK Sheffield University funded by (AKT) an IRC sponsored by EPSRC, grant number GR/N15764/01.
標簽: e.g. Levenshtein SimMetrics Similarity
上傳時間: 2014-01-22
上傳用戶:cc1
很多分硬盤分區(qū)不能為整數(shù)G 這個軟件可以幫你詳細計算
上傳時間: 2015-09-08
上傳用戶:jqy_china
共軛正交鏡像濾波器組的設計。令N=22,wp=0.45pi,用切比雪夫最佳一致逼近法設計單帶濾波器G(z),在得到半帶濾波器Hlf(z).
上傳時間: 2014-12-08
上傳用戶:541657925
OpenSG is a scenegraph system for realtime rendering, e.g. for Virtual Reality applications. It is just a library, not a full application. This documentation contains descriptions of the internal classes and concepts, as well as a tutorial that explains how to use the system.
標簽: e.g. applications scenegraph for
上傳時間: 2015-09-13
上傳用戶:bruce
oracle 10 g 的空間數(shù)據(jù)庫學習資料。值得一下
標簽: oracle 10 空間數(shù)據(jù)庫
上傳時間: 2015-09-15
上傳用戶:weiwolkt
G.729協(xié)議壓縮的語音傳輸程序,使用了ti5410
上傳時間: 2013-12-05
上傳用戶:小鵬
ITU-T發(fā)布的音頻編解碼協(xié)議g.723.1源碼,歡迎交流
標簽: ITU-T 723.1 發(fā)布 協(xié)議
上傳時間: 2015-09-15
上傳用戶:ippler8
直流電機的PWM速度控制程序?繃韉緇腜WM速度控制程序?繃韉緇腜WM速度控制程序?繃韉緇腜WM速度控制程序
上傳時間: 2013-12-11
上傳用戶:hgy9473
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1