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,以突出牌照区域。 4.削弱背景干扰。对图像B做简单的相邻像素灰度值相减,得到新的图像G,即Gi,j=|Pi,j-Pi,j-1|i=0,1,…,439 j=0,1,…,639Gi,0=Pi,0,左边缘直接赋值,不会影响整体效果。 5.用自定义模板进行中值滤波 区域灰度基本被赋值为0。考虑到文字是由许多短竖线组成,而背景噪声有一大部分是孤立噪声,用模板(1,1,1,1,1)T对G进行中值滤波,能够得到除掉了大部分干扰的图像C。 6.牌照搜索:利用水平投影法检测车牌水平位置,利用垂直投影法检测车牌垂直位置。 7.区域裁剪,截取车牌图像。
上传时间: 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
很多分硬盘分区不能为整数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 的空间数据库学习资料。值得一下
上传时间: 2015-09-15
上传用户:weiwolkt
G.729协议压缩的语音传输程序,使用了ti5410
上传时间: 2013-12-05
上传用户:小鹏
ITU-T发布的音频编解码协议g.723.1源码,欢迎交流
上传时间: 2015-09-15
上传用户:ippler8
直流电机的PWM速度控制程序?绷鞯缁腜WM速度控制程序?绷鞯缁腜WM速度控制程序?绷鞯缁腜WM速度控制程序
上传时间: 2013-12-11
上传用户:hgy9473