lisp最小外接矩形算法_一种求解graph的最小外接矩形的算法

龙源期刊网

http://www.qikan.com.cn

一种求解

graph

的最小外接矩形的算法

作者:王秋娇

秦春桃

帅玉琳

来源:《成都工业学院学报》

2019

年第

01

摘要:

为解决工程应用中曲边图形的最小外接矩形的计算问题,介绍了现有的几种算法,分析了

其优缺点。提出一种时间复杂度为

O

(

n

)的离散迭代算法,该算法以曲边图形轮廓上的一点

为基准,旋转切线获得切线与曲边轮廓的交点,以过该交点的切线为一条边作外接矩形。每次

迭代得到局部最小外接矩形,逐次迭代达到所要求的精度。使用

Qt

程序框架验证了该算法,

分析了该算法的可行性和可靠性。结果表明,该算法可以快速高效地获得给定曲边图形的最小

外接矩形。

关键词:曲边图形;最小外接矩形;离散迭代算法

中图分类号:

O241

TP391

文献标志码:

A

文章编号:

2095-5383

(

2019

)

01-0041-04

An Algorithm for Solving the Minimum Circumscribed Rectangle

of Curved Edges Graphs

WANG Qiujiao1

QIN Chuntao1

SHUAI Yulin2

(

1. Basic Department

Southwest Jiaotong University Hope College

Chengdu 61

0400

China

2. School of Mathematics

Southwest Jiaotong University

Chengdu

611756

China

)

Abstract

In order to solve the problem of calculating the minimum circumscribed rectangle of curved edge

graphs in engineering application

several existing algorithms were introduced

and their

advantages and disadvantages were analyzed. A discrete iterative algorithm with time complexity of O

(

n

)

was proposed. The algorithm takes the point on the contour of a curved edge graphs as the

benchmark and rotates the tangent line to get the intersection point between the tangent line and the

curved edge. The tangent line passing through the intersection point was taken as a side of an external

rectangle. A local minimum circumscribed rectangle is obtained in every iteration process and the

required accuracy is achieved by successive iterations. The Qt program framework was used to verify

the algorithm

and the feasibility and reliability of the algorithm were analyzed. The results show

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值