-
algorithm-of-findpath
绣花问题是连续型的填充,在不同区域的缝制过程中,缝针不能提针,因此不能用一般的离散型区
域填充方法处理。本文运用几何计算和图论理论提出了一个绣花缝针轨迹自动生成算法:先对轮廓走向进行
定义,通过轮廓铅垂方向的局部极值点的分割线将图案从上向下进行分割,采用交点的特征值比较彻底的解
决了分割时的重点问题,将图案区域准确的划分成缝针能一次完成的若干个节点。在此基础上根据节点的邻
接关系建立节点的邻接“图”,通过图论中半哈密尔顿路径或深度遍历方法找到节点的遍历(缝制)序列和每
个节点的缝制方向,最后可对设定的起点、终点和缝针间隔的条件自动提供缝针的走向轨迹。(In the process of embroidering, needle can not hang up for changing to a different area. Therefore, Embroider
problem could be abstract as a continuous area-filling work. Considering disperse area-filling methods can not process this
problem well. Based on geometry computing and graph theory, an algorithm of finding path of embroidering needle are
proposed in this paper. First, outline orientations are defined, and finding all local extreme points of inner outline on their
gravitational orientation to build sectioning lines so as to divide the picture. By using intersection point character the
overlap point problem was solved perfectly. Therefore, the picture is divided into some nodes which can be finished alone.
Then, based on connections of these nodes, an adjacency graph of nodes was built. Using half-Hamilton path or depth-first
search method, both embroidering sequence and direction of these nodes could be got from the graph. Finally, from a
defined start-point, end-point)
- 2012-12-09 23:26:22下载
- 积分:1
-
lesson-1
Windows程序运行原理及程序编写流程,窗口产生过程,句柄原理,消息队列,回调函数,窗口关闭与应用程序退出的工作关系,使用VC++的若干小技巧,stdcall与cdecl调用规范的比较,初学者常犯错误及注意事项。(Run Windows program principles and procedures for the preparation process, the process window, handle theory, message queues, the callback function, the application window is closed and quit working relationship, using VC++ several tips, stdcall and cdecl calling conventions comparison, beginners often mistakes and precautions.)
- 2013-12-25 18:17:24下载
- 积分:1
-
qt的tcp receiver界面设计
TCP调试工具顾名思义用来调试TCP通信的,网上这样的工具N多,之前用.NET写过一个,发现QT写TCP通信比.NET还要便捷一些,运行效率貌似要高,还能识别客户端断开。可以看到服务器端和客户度端都可以当做发送端或者接收端,而且数据的发送与接收只要使用相对应的协议即可,它是可以根据用户的需要来进行编程的,没有固定的格式。
- 2022-02-05 08:38:49下载
- 积分:1
-
test
以c++和opencv为工具,通过摄像头捕捉到肤色区域,并跟踪,实现手势识别(In c++ and opencv as a tool, through the camera to capture color region and tracking, gesture recognition)
- 2013-08-28 09:10:47下载
- 积分:1
-
B06040324_B2
模拟电信计费系统的设计与实现
要求:(1) 计费功能。根据存放在源数据文件中的通话记录和长途费率文件对每一条通话记录计算其通话费用,并将结果保存在费用文件中。其中:
通话费的计算方法如下:
通话费=长途电话费+本地电话费
长途电话费=费率(元/分钟)×通话时长(分钟)
(通话时长不满1分钟的按1分钟计算)
本地电话费为:3分钟以内0.5元,以后每3分钟递增0.2元。
(2) 话费查询。输入一个电话号码,从费用文件中统计该电话号码的所有本地话费、长途话费,并从用户文件中查找其用户名,最后在屏幕上显示:
用户名 电话号码 本地话费 长途话费 话费总计
(3) 话单查询。输入一个电话号码,查询并在屏幕显示该用户的所有通话记录,格式为:
用户名 主叫电话号码 被叫电话号码 通话时长
(Design and implementation of simulation of telecommunication billing system
Requirements: (1) the charging function. According to the calculation of the call charges stored in the source data file in the call records and the long rate documents for each call record, and save the results in cost file. Among them:
The following conversation method to calculate the fee:
Long distance telephone calls =+ local telephone fee
Long distance telephone fee = rate (yuan/minute)* call time (minutes)
(call time less than 1 minutes to 1 minutes)
Local call: 3 minutes 0.5 yuan, increasing 0.2 yuan every 3 minutes later.
(2) calls inquiries. Enter a phone number, all local calls, long-distance calls statistics the phone number from the cost in the file, and find the user name from user file, and finally displayed on the screen:
The user name phone number local calls long distance charges charges totaling
(3) if a single query. Enter a phone number, query and display all the call records of th)
- 2013-09-25 05:53:29下载
- 积分:1
-
The-CPP-Programming-Language
The C++ Programming Language.Third Edition - Bjarne Stroustrup.1997.pdf(The C++ Programming Language.Third Edition- Bjarne Stroustrup.1997.pdf)
- 2013-12-29 19:46:44下载
- 积分:1
-
LBP特征向量的提取过程
对LBP特征向量进行提取的步骤
(1)首先将检测窗口划分为16×16的小区域(cell);
(2)计算每个像素点的旋转不变等价模式的LBP特征值,得到对应的十进制数,也就是模式。
(3)然后计算每个cell的LBP特征值直方图,然后对该直方图进行归一化处理(每个模块中,对于每个bin,h[i]/=sum,sum就是一副图像中所有等价类的个数)。
(4)最后将得到的每个cell的统计直方图进行连接成为一个特征向量,也就是整幅图的LBP纹理特征向量;
然后便可利用SVM或者其他机器学习算法进行识别了。
- 2022-05-29 03:57:53下载
- 积分:1
-
DeleteChar
华为OJ题目,塞答案。删除指定字符串。 (Huawei OJ topic, delete the specified string.)
- 2014-02-27 16:24:55下载
- 积分:1
-
资源MFC-DLL的制作[在DLL中封装MFC对话框]
说明: 资源MFC DLL的制作,在DLL中封装MFC对话框。(The production of resource MFC DLL encapsulates MFC dialog box in DLL.)
- 2020-06-24 07:20:02下载
- 积分:1
-
balanceeee
balance code of a infix notification..this code balance the infix..try it
- 2011-08-06 04:57:12下载
- 积分:1